How srikanth903/agentic-rag-research-assistant. works
This is an Agentic RAG Research Assistant: users upload documents, then ask questions through a FastAPI service or its browser interface and receive grounded answers with traceable sources. The documented answer path retrieves local evidence, optionally reranks it, builds context and prompts, and uses an LLM; agent workflows can add iterative retrieval and web research. Ingestion, authentication, conversation memory, and evidence verification are distinct capabilities. The README supports several workflow links; source excerpts confirm the RAG, retrieval, and service-layer calls. Other subsystem links are omitted where wiring was not shown.
Main entry points: rag_pipeline.py RAG Pipeline · main.py FastAPI App · retrieval_service.py Retrieval Service · retriever.py Semantic Retrieval
Components 27
User Interface
- Browser App
frontend/src/app/router.tsx
API and Access
- FastAPI App
app/main.py - JWT Access
app/auth/service.py - Document Routes
app/api/routes/documents.py - RAG Routes
app/api/routes/rag.py - Search Routes
app/api/routes/search.py - Conversation Routes
app/api/routes/conversation.py
Document Indexing
- Document Extraction
app/ingestion - Text Chunking
app/chunking/text_chunker.py - Embeddings
app/embeddings/sentence_transformer.py - Chroma Index
app/vectorstore/chroma_store.py
Research and Answers
- RAG Service
app/services/rag_service.py - RAG Pipeline
app/rag/rag_pipeline.py - Semantic Retrieval
app/retrieval/retriever.py - Retrieval Service
app/services/retrieval_service.py - Cross-Encoder Reranker
app/retrieval/reranker.py - Context and Prompts
app/rag/prompt_builder.py - LLM Service
app/services/llm_service.py - LLM Providers
app/llm/factory.py - Research Agent
app/agents/research_agent.py - Web Research
app/websearch/duckduckgo.py - Evidence Verification
app/evidenceguard/evidence_verifier.py
Conversation and Evaluation
- Conversation Service
app/conversation/service.py - Conversation Memory
app/conversation/memory.py - Query Rewriting
app/conversation/query_rewriter.py - RAG Evaluation
app/evaluation
Other components
- Researcher
Connections 33
- Researcher → Browser App: uses
frontend/src/app/router.tsx - Researcher → FastAPI App: requests
README.md - Browser App → FastAPI App: calls API
- FastAPI App → Document Routes: registers routes
app/main.py - FastAPI App → RAG Routes: registers routes
app/main.py - FastAPI App → Search Routes: registers routes
app/main.py - FastAPI App → Conversation Routes: registers routes
app/main.py - Researcher → JWT Access: authenticates
README.md - Document Routes → Document Extraction: ingests files
README.md - Document Extraction → Text Chunking: extracts then chunks
README.md - Text Chunking → Embeddings: embeds chunks
README.md - Embeddings → Chroma Index: indexes vectors
README.md - Researcher → RAG Routes: asks question
README.md - RAG Routes → RAG Service: answers via
README.md - RAG Service → RAG Pipeline: runs pipeline
app/services/rag_service.py - RAG Pipeline → Retrieval Service: retrieves evidence
app/rag/rag_pipeline.py - Retrieval Service → Semantic Retrieval: fetches candidates
app/services/retrieval_service.py - Semantic Retrieval → Embeddings: embeds query
app/retrieval/retriever.py - Semantic Retrieval → Chroma Index: searches index
app/retrieval/retriever.py - Retrieval Service → Cross-Encoder Reranker: reranks results
app/services/retrieval_service.py - RAG Pipeline → Context and Prompts: builds context
app/rag/rag_pipeline.py - RAG Pipeline → LLM Service: generates answer
app/rag/rag_pipeline.py - LLM Service → LLM Providers: selects provider
app/services/llm_service.py - RAG Pipeline → Evidence Verification: verifies claims
app/rag/rag_pipeline.py - Researcher → Conversation Routes: continues chat
README.md - Conversation Routes → Conversation Service: handles chat
README.md - Conversation Service → Query Rewriting: rewrites queries
app/conversation/service.py - Query Rewriting → LLM Service: requests rewrite
app/conversation/query_rewriter.py - Conversation Service → Conversation Memory: persists history
app/conversation/service.py - Researcher → Research Agent: requests research
README.md - Research Agent → Retrieval Service: retrieves locally
app/agents/research_agent.py - Research Agent → Web Research: searches web
app/agents/research_agent.py - RAG Pipeline → RAG Evaluation: assessed by