How muthukamalan/agentic-rag works
This repository is an early-stage RAG library. Its clearest implemented workflow is document ingestion: an ingestion service extracts content, chunks it, embeds text, images, and tables, then submits chunks to a vector store. Source adapters, format extractors, chunking strategies, vector-store backends, and retrieval/evaluation modules are present, but many are stubs or were not sampled. The query orchestrator is only a skeleton; the graph therefore shows no inferred retrieval pipeline.
Main entry points: ingestion.py Ingestion Service · interfaces.py Service Interfaces · extractors File Extractors · embedding_gemm2.py Gemma2 Embedder
Components 13
Ingestion
- Ingestion Service
src/rag/services/ingestion.py
Content Processing
- File Extractors
src/rag/extractors - Chunking Strategies
src/rag/chunking - Gemma2 Embedder
src/rag/embedding/embedding_gemm2.py
Sources and Indexes
- Local Source
src/rag/sources/localsource.py - S3 Source
src/rag/sources/s3source.py - Elasticsearch Store
src/rag/vectorstores/elastic_search.py - Qdrant Store
src/rag/vectorstores/qdrant.py
Query and Evaluation
- RAG Orchestrator
src/rag/services/orchestrors.py - Retrieval Metrics
src/rag/metrics/retrival_metrics.py - Reranker Metrics
src/rag/metrics/reranker_metrics.py
Domain Contracts
- Service Interfaces
src/rag/interfaces.py - RAG Data Models
src/rag/models.py
Connections 8
- Ingestion Service → File Extractors: extracts via
src/rag/services/ingestion.py - Ingestion Service → Chunking Strategies: chunks via
src/rag/services/ingestion.py - Ingestion Service → Gemma2 Embedder: embeds via
src/rag/services/ingestion.py - Ingestion Service → Elasticsearch Store: indexes via
- Ingestion Service → Qdrant Store: indexes via
- File Extractors → Service Interfaces: implements
src/rag/extractors/pdf_extractors.py - Gemma2 Embedder → Service Interfaces: implements
src/rag/embedding/embedding_gemm2.py - Local Source → Service Interfaces: implements
src/rag/sources/localsource.py