How chirayurm21305-byte/production-agentic-rag-course-main works
The repository is an arXiv research-paper curator: scheduled ingestion feeds metadata and parsed paper content into storage and search, while API and chat clients support search and RAG answers. The README also documents adaptive agentic retrieval, tracing, caching, a Gradio interface, and Telegram access. Several of those paths are represented from documented capabilities and the source index; unsampled internals are not expanded into speculative call chains.
Main entry points: dependencies.py Service dependencies · agentic_rag.py Adaptive RAG workflow · arxiv_paper_ingestion.py Airflow workflow · main.py FastAPI application
Components 23
Paper ingestion
- Airflow workflow
airflow/dags/arxiv_paper_ingestion.py - Paper fetching
airflow/dags/arxiv_ingestion/fetching.py - PDF parsing
src/services/pdf_parser - Ingestion reporting
airflow/dags/arxiv_ingestion/reporting.py
Storage and indexing
- Chunk and index
src/services/indexing - PostgreSQL
src/db/interfaces/postgresql.py - Paper metadata
src/models/paper.py - Paper repository
src/repositories/paper.py - OpenSearch search
src/services/opensearch/client.py
API and retrieval
- FastAPI application
src/main.py - Hybrid search API
src/routers/hybrid_search.py - RAG ask API
src/routers/ask.py - Service dependencies
src/dependencies.py - Response cache
src/services/cache/client.py
Agentic answers
- Agentic ask API
src/routers/agentic_ask.py - Adaptive RAG workflow
src/services/agents/agentic_rag.py - Jina embeddings
src/services/embeddings/jina_client.py - Ollama generation
src/services/ollama/client.py
User interfaces and observability
- Gradio chat
src/gradio_app.py - Telegram bot
src/services/telegram/bot.py - Tracing
src/services/langfuse/client.py
Other components
- Researcher
- arXiv API
Connections 30
- Researcher → FastAPI application: asks and searches
- FastAPI application → Hybrid search API: registers routes
src/main.py - FastAPI application → RAG ask API: registers routes
src/main.py - FastAPI application → Agentic ask API: registers route
src/main.py - Hybrid search API → Service dependencies: gets services
src/routers/hybrid_search.py - RAG ask API → Service dependencies: gets services
src/routers/ask.py - Agentic ask API → Service dependencies: gets agent
src/routers/agentic_ask.py - Service dependencies → Adaptive RAG workflow: constructs service
src/dependencies.py - Service dependencies → OpenSearch search: provides client
src/dependencies.py - Service dependencies → Ollama generation: provides client
src/dependencies.py - Service dependencies → Jina embeddings: provides client
src/dependencies.py - Hybrid search API → OpenSearch search: searches chunks
- Adaptive RAG workflow → OpenSearch search: retrieves papers
src/services/agents/agentic_rag.py - Adaptive RAG workflow → Ollama generation: generates answers
src/services/agents/agentic_rag.py - Adaptive RAG workflow → Jina embeddings: embeds queries
src/services/agents/agentic_rag.py - Adaptive RAG workflow → Tracing: traces workflow
src/services/agents/agentic_rag.py - RAG ask API → Response cache: uses cache
- Researcher → Gradio chat: chats through
- Researcher → Telegram bot: chats through
- Telegram bot → Adaptive RAG workflow: offers agentic access
- Airflow workflow → Paper fetching: runs fetching
airflow/dags/arxiv_paper_ingestion.py - Airflow workflow → Ingestion reporting: runs reporting
airflow/dags/arxiv_paper_ingestion.py - Airflow workflow → Chunk and index: runs indexing
airflow/dags/arxiv_paper_ingestion.py - Paper fetching → arXiv API: fetches papers
- Paper fetching → PDF parsing: downloads and parses
- Chunk and index → Jina embeddings: creates vectors
- Chunk and index → OpenSearch search: writes chunks
- Paper repository → Paper metadata: persists records
src/repositories/paper.py - Paper metadata → PostgreSQL: maps database rows
src/models/paper.py - Airflow workflow → PostgreSQL: initializes database