How avinavkumar0045/local-admission-agentops works
AgentOps is a local admission-question RAG application with a parallel observability path. A student asks in Streamlit; FastAPI validates, retrieves evidence from FAISS, generates a grounded answer through local Qwen/Ollama, and returns answer plus sources. Separately, OpenTelemetry spans and a legacy MySQL tracker support trace exploration, metrics, and failure alerting. The ingestion path builds the vector knowledge base. Core runtime calls are evidenced in excerpts; broader Tempo/Grafana and alert wiring is described by the README, while some deployment details are not inspected.
Main entry points: api.py Query API · telemetry.py Telemetry Tracker · generator.py Answer Generation · retriever.py Semantic Retrieval
Components 18
Student Interaction
- Chat UI
ui/app.py
Admission RAG
- Query API
src/agent/api.py - Semantic Retrieval
src/agent/retriever.py - Answer Generation
src/agent/generator.py - Prompt Rules
src/agent/prompts.py - Grounding & Explanation
src/agent/api.py
Knowledge Base
- Document Ingestion
src/agent/ingest.py - Admission Documents
data/raw - FAISS Knowledge Store
data/vector_store
AgentOps Observability
- Runtime Settings
src/config.py - Telemetry Tracker
src/agentops/telemetry.py
Trace Operations
- OTel Collector
- Tempo Traces
- MySQL Metrics
- Grafana Explorer
- Failure Webhook
Other components
- Student
- Engineering Team
Connections 23
- Student → Chat UI: asks question
README.md - Chat UI → Query API: posts query
ui/app.py - Query API → Semantic Retrieval: retrieves context
src/agent/api.py - Semantic Retrieval → FAISS Knowledge Store: searches index
src/agent/retriever.py - Query API → Answer Generation: generates answer
src/agent/api.py - Answer Generation → Prompt Rules: builds prompt
src/agent/generator.py - Answer Generation → OTel Collector: exports spans
- Answer Generation → MySQL Metrics: records spans
- Query API → Grounding & Explanation: validates evidence
src/agent/api.py - Grounding & Explanation → Chat UI: returns answer
src/agent/api.py - Document Ingestion → Admission Documents: reads documents
src/agent/ingest.py - Document Ingestion → FAISS Knowledge Store: writes index
src/agent/ingest.py - Semantic Retrieval → Telemetry Tracker: emits spans
src/agent/retriever.py - Query API → Telemetry Tracker: records lifecycle
src/agent/api.py - Telemetry Tracker → OTel Collector: exports traces
src/agentops/telemetry.py - Telemetry Tracker → MySQL Metrics: writes metrics
src/agentops/telemetry.py - OTel Collector → Tempo Traces: forwards traces
README.md - Grafana Explorer → Tempo Traces: explores traces
README.md - Grafana Explorer → MySQL Metrics: queries metrics
README.md - Grafana Explorer → Failure Webhook: routes failures
README.md - Failure Webhook → Engineering Team: sends alert
README.md - Query API → Runtime Settings: reads toggle
src/agent/api.py - Telemetry Tracker → Runtime Settings: loads configuration
src/agentops/telemetry.py