Add rag module: Spring AI 2.0 RAG with pgvector, chunking, reranking and a faithfulness check

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
Claude
2026-09-21 19:09:05 +00:00
commit 1d4625a1c2
62 changed files with 3715 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# The pipeline as Spring beans (the shipped configuration, fake models)
stage / role bean name actual class
DocumentTransformer chunker TokenTextSplitter
EmbeddingModel embeddingModel HashingEmbeddingModel
VectorStore vectorStore PgVectorStore
RetrievalAugmentationAdvisor retrievalAdvisor RetrievalAugmentationAdvisor
LlmReranker reranker LlmReranker
ChatModel chatModel FakeChatModel
ChatClient ragChatClient DefaultChatClient
FactCheckingEvaluator factChecker FactCheckingEvaluator
IngestionService ingestionService IngestionService
RagQueryService ragQueryService RagQueryService