How abisheck007/agentic-llmops works
This is an agentic retrieval-augmented generation platform: a user submits a knowledge-base question through the frontend and API, the agent retrieves documents, assesses context relevance, and either returns a fallback or generates a grounded answer with sources and trace metadata. A separate ingestion path loads document data into Azure AI Search. The map also preserves evaluation and observability as product-supporting branches. Source-level links are shown where excerpts or the source index support them; frontend/API wiring is not visible in the supplied evidence.
Main entry points: routes.py Query API · graph.py Agent graph · nodes.py Agent nodes · client.py Answer generation
Components 21
User experience
- Query UI
frontend/app.py - Query API
backend/app/api/routes.py - Request and response models
backend/app/api/schemas.py - API application
backend/app/main.py
Agent workflow
- Agent graph
backend/app/agent/graph.py - Agent state
backend/app/agent/state.py - Agent nodes
backend/app/agent/nodes.py
Knowledge retrieval
- Document ingestion
backend/app/rag/ingestion.py - Knowledge documents
data/documents.json - Document retrieval
backend/app/rag/retrieval.py - Search client
backend/app/rag/search_client.py
Model services
- Answer generation
backend/app/llm/client.py - Runtime settings
backend/app/core/config.py
Evaluation and observability
- Answer quality checks
backend/app/evaluation/quality_checks.py - RAG evaluation
backend/app/evaluation/rag_eval.py - Agent evaluation
backend/app/evaluation/agent_eval.py - Metrics
backend/app/observability/metrics.py - Tracing and telemetry
backend/app/observability/tracing.py
Other components
- Questioner
- Azure AI Search
- Azure OpenAI
Connections 28
- Questioner → Query UI: asks
- Query UI → Query API: submits query
- API application → Query API: mounts routes
backend/app/main.py - Query API → Request and response models: validates and formats
backend/app/api/routes.py - Query API → Agent graph: runs agent
backend/app/api/routes.py - Query API → Metrics: records API metrics
backend/app/api/routes.py - Query API → Tracing and telemetry: gets trace ID
backend/app/api/routes.py - Agent graph → Agent nodes: registers and dispatches
backend/app/agent/graph.py - Agent graph → Agent state: invokes with state
backend/app/agent/graph.py - Agent nodes → Agent state: reads and updates
backend/app/agent/nodes.py - Agent nodes → Document retrieval: retrieves documents
backend/app/agent/nodes.py - Agent nodes → Answer generation: generates answer
backend/app/agent/nodes.py - Agent nodes → Agent graph: context routes workflow
backend/app/agent/graph.py - Document ingestion → Knowledge documents: loads
backend/app/rag/ingestion.py - Document ingestion → Search client: uploads through
backend/app/rag/ingestion.py - Document retrieval → Search client: searches through
backend/app/rag/retrieval.py - Search client → Azure AI Search: queries index
backend/app/rag/search_client.py - Answer generation → Azure OpenAI: requests completion
backend/app/llm/client.py - Answer generation → Request and response models: uses source model
backend/app/llm/client.py - Answer generation → Metrics: records model metrics
backend/app/llm/client.py - Answer generation → Runtime settings: uses model settings
backend/app/llm/client.py - Document retrieval → Request and response models: builds source records
backend/app/rag/retrieval.py - Document retrieval → Metrics: records retrieval metrics
backend/app/rag/retrieval.py - Search client → Runtime settings: reads search settings
backend/app/rag/search_client.py - API application → Runtime settings: configures application
backend/app/main.py - API application → Tracing and telemetry: configures telemetry
backend/app/main.py - Agent evaluation → Agent graph: evaluates workflow
backend/app/evaluation/agent_eval.py - Answer quality checks → Agent graph: checks agent output
backend/app/evaluation/quality_checks.py