How kasturimaheshbabu2316-mc/capstone---service works
Ola Support Agent serves policy questions and ticket-status requests through REST/WebSocket or a Streamlit portal. The main request workflow applies input safety and caching, resolves session context, routes to policy retrieval or ticket lookup, then reviews and returns a structured answer with audit metadata. Separate branches cover policy-document ingestion, dual-index retrieval, and ticket-risk scoring. The excerpts and SOURCE INDEX support the principal service and agent links; portal-specific internals are less visible, so those links are limited to documented capabilities.
Main entry points: main.py FastAPI Service · crew.py Agent Coordinator · agents.py Specialist Agents · ticket_tool.py Ticket Lookup
Components 22
User Interfaces
- Web Console
static/app.js - Streamlit Portal
streamlit_app.py
Request Service
- FastAPI Service
app/main.py - API Schemas
app/models.py - Input Guardrails
guardrails/input_guard.py - Response Cache
cache.py - Audit Logging
app/logging_utils.py
Support Domain
- Response Schema
crew/schema.py - Session Memory
crew/memory.py - Agent Coordinator
crew/crew.py - Specialist Agents
crew/agents.py - Offline Mock LLM
llm/mock_llm.py - Ticket Lookup
tools/ticket_tool.py - Ticket Dataset
dataset.py - Compliance Review
review/autogen_review.py
Policy Knowledge
- Policy Lookup Tool
tools/rag_tool.py - Grounded Generation
rag/generate.py - Dual Vector Index
rag/index.py - Document Chunking
rag/chunking.py - Policy Ingestion
app/main.py
Other components
- Customer
- Support Admin
Connections 26
- Customer → Web Console: uses chat
- Web Console → FastAPI Service: sends requests
- Customer → Streamlit Portal: uses portal
- Streamlit Portal → FastAPI Service: invokes support
- Support Admin → Policy Ingestion: submits documents
- Policy Ingestion → Dual Vector Index: indexes documents
app/main.py - Policy Ingestion → Response Cache: invalidates entries
app/main.py - FastAPI Service → API Schemas: validates payloads
app/main.py - FastAPI Service → Input Guardrails: sanitizes input
app/main.py - FastAPI Service → Response Cache: checks cache
app/main.py - FastAPI Service → Agent Coordinator: runs support crew
app/main.py - FastAPI Service → Compliance Review: reviews draft
app/main.py - FastAPI Service → Audit Logging: records requests
app/main.py - Agent Coordinator → Session Memory: resolves context
crew/crew.py - Agent Coordinator → Specialist Agents: creates agents
crew/crew.py - Agent Coordinator → Ticket Lookup: checks tickets
crew/crew.py - Agent Coordinator → Policy Lookup Tool: looks up policies
crew/crew.py - Agent Coordinator → Response Schema: returns structured answer
crew/crew.py - Specialist Agents → Offline Mock LLM: uses model
crew/agents.py - Specialist Agents → Ticket Lookup: binds ticket tool
crew/agents.py - Specialist Agents → Policy Lookup Tool: binds policy tool
crew/agents.py - Ticket Lookup → Ticket Dataset: reads records
tools/ticket_tool.py - Policy Lookup Tool → Grounded Generation: generates lookup
tools/rag_tool.py - Grounded Generation → Dual Vector Index: retrieves chunks
rag/generate.py - Dual Vector Index → Document Chunking: chunks documents
rag/index.py - Compliance Review → Grounded Generation: checks grounding
review/autogen_review.py