#2020th of 34 in RAG and search
llm-apps-java-spring-ai
Spring AI sample projects for chat, RAG, tool calling and observability in Java
- Stars
- 790
- License
- Apache-2.0
- Last commit
- Nov 2026
- Language
- Java
735 on 6 May 2026790 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A collection of small Java 25 sample applications built on Spring AI. Each folder covers one topic: chat models, embeddings, prompts, structured output, tool calling, chat memory, guardrails, document ingestion, several RAG flows and LLM observability. Most samples use Ollama, some have Mistral AI and OpenAI variants, and retrieval samples use PGVector.
Who it is for: Java developers learning Spring AI patterns for LLM apps
Strengths
- Covers sequential, branching and conditional RAG flows with Ollama and PGVector
- Same pattern often shown for Ollama, OpenAI and Mistral AI side by side
- Includes chat memory variants: in-memory, JDBC, Spring Security, vector store
- Includes observability samples for models and PGVector
Weaknesses
- Separate sample modules, not one forkable app with auth or billing
- Vector stores, evaluation and agents sections are marked coming soon
- Requires Java 25, which many teams have not adopted
- Only PGVector is shown as a vector store
What it needs
- Java, Ollama, OpenAI, Mistral AI, ONNX Transformers
- Needs Java 25, Podman or Docker, Ollama, PGVector
Also in RAG and search
See all 34| Rank | Project | Score |
|---|---|---|
| #18 | oramaIn-process full-text, vector and hybrid search library for JavaScript | 46 out of 100 |
| #19 | SupabaseAuthWithSSRClaude chat on Next.js 16 with Supabase auth, pgvector RAG, cost dashboards | 45 out of 100 |
| #21 | rag-postgres-openai-pythonRAG over Postgres table rows with hybrid search and SQL filters | 43 out of 100 |
| #22 | generativeaiexamplesNVIDIA notebooks and sample apps for RAG, agents and NeMo microservices | 42 out of 100 |
| #23 | serverless-chat-langchainjsRAG chatbot sample on Azure Functions, Cosmos DB and LangChain.js | 42 out of 100 |