# kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom architecture

> Architecture diagram of the GitHub repository kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom
- Repository: https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom

## Overview

NetOps Triage is a local telecom-operations assistant. An engineer submits an incident through the React interface; the API applies guardrails, retrieves similar cases, classifies and assesses the incident, predicts risk, and returns a prioritized, evidence-backed troubleshooting report. Separate product branches support case search, simulation, and quality/feedback review. The README documents the agent sequence and major capabilities; source-index references establish many internal dependencies, but several route and UI implementations were not sampled, so those links are kept at subsystem level.

Main entry points: [`src/services/container.py`](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/container.py) (Service container), [`src/rag/hybrid_retriever.py`](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/hybrid_retriever.py) (Hybrid retriever), [`frontend-react/src/App.tsx`](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/App.tsx) (React application), [`src/services/troubleshooting_service.py`](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/troubleshooting_service.py) (Troubleshooting service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Engineer interface"]
  node_frontend["React application<br/>[App.tsx]"]
  node_ui["Shared UI<br/>[ui.tsx]"]
  node_copy["Interface copy<br/>[copy.ts]"]
  node_investigate["Investigate page<br/>[Investigate.tsx]"]
  node_cases_page["Cases page<br/>[Cases.tsx]"]
  node_simulate["Simulation page<br/>[Simulate.tsx]"]
  node_quality["Quality page<br/>[Quality.tsx]"]
end

subgraph group_api["API access"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_routes["API routes"]
end

subgraph group_triage["Incident analysis"]
  node_troubleshooting["Troubleshooting service"]
  node_agent_graph["Agent workflow<br/>[graph.py]"]
  node_classifier["Incident classifier"]
  node_analyst["Root-cause analyst<br/>[analyst_agent.py]"]
  node_recommender["Action recommender"]
  node_judge["Answer judge<br/>[judge_agent.py]"]
  node_tools["Agent tools<br/>[tools.py]"]
end

subgraph group_knowledge["Case and runbook retrieval"]
  node_retriever["Hybrid retriever"]
  node_filters["Search filters<br/>[filters.py]"]
  node_embeddings["Dense embeddings<br/>[embeddings.py]"]
  node_keyword["Keyword index<br/>[keyword_index.py]"]
  node_vector[("Vector store<br/>[vector_store.py]")]
  node_context["Evidence context<br/>[context_builder.py]"]
end

subgraph group_runtime["Runtime services"]
  node_container["Service container<br/>[container.py]"]
  node_guardrails["Input guardrails<br/>[guardrails.py]"]
  node_kpi["KPI assessment<br/>[kpi_analyzer.py]"]
  node_prediction["Risk prediction<br/>[predictor.py]"]
  node_prioritization["Incident priority<br/>[prioritization.py]"]
  node_feedback[("Feedback and reranking")]
  node_llm["LLM client<br/>[llm_client.py]"]
  node_query_parser["Query understanding<br/>[query_parser.py]"]
  node_schema["Network domain schema<br/>[schema.py]"]
  node_settings["Runtime settings<br/>[config.py]"]
  node_network["Network utilities<br/>[net.py]"]
end

node_engineer(("NOC engineer"))

node_engineer -->|"submits incident"| node_frontend
node_frontend -->|"routes to"| node_investigate
node_frontend -->|"routes to"| node_cases_page
node_frontend -->|"routes to"| node_simulate
node_frontend -->|"routes to"| node_quality
node_frontend -->|"renders"| node_ui
node_ui -->|"uses text"| node_copy
node_frontend -->|"calls over HTTP"| node_api_app
node_api_app -->|"registers"| node_routes
node_api_app -->|"builds services"| node_container
node_routes -->|"serves analysis"| node_troubleshooting
node_troubleshooting -->|"checks input"| node_guardrails
node_troubleshooting -->|"runs workflow"| node_agent_graph
node_agent_graph -->|"dispatches"| node_classifier
node_agent_graph -->|"dispatches"| node_analyst
node_agent_graph -->|"dispatches"| node_recommender
node_agent_graph -->|"validates with"| node_judge
node_analyst -->|"builds evidence"| node_context
node_analyst -->|"requests analysis"| node_llm
node_classifier -->|"requests classification"| node_llm
node_analyst -->|"uses tools"| node_tools
node_tools -->|"searches cases"| node_retriever
node_tools -->|"assesses KPIs"| node_kpi
node_tools -->|"calculates priority"| node_prioritization
node_retriever -->|"validates filters"| node_filters
node_retriever -->|"embeds queries"| node_embeddings
node_retriever -->|"searches keywords"| node_keyword
node_retriever -->|"searches vectors"| node_vector
node_retriever -->|"parses query"| node_query_parser
node_container -->|"constructs"| node_retriever
node_container -->|"constructs"| node_embeddings
node_container -->|"constructs"| node_feedback
node_container -->|"constructs"| node_llm
node_container -->|"constructs"| node_prediction
node_troubleshooting -->|"assesses incident"| node_kpi
node_troubleshooting -->|"sets priority"| node_prioritization
node_troubleshooting -->|"records run"| node_feedback
node_retriever -.->|"uses rerank priors"| node_feedback
node_simulate -.->|"requests predictions"| node_api_app
node_cases_page -.->|"searches cases"| node_api_app
node_quality -.->|"loads quality data"| node_api_app
node_kpi -->|"uses KPI definitions"| node_schema
node_filters -->|"uses domain vocabularies"| node_schema
node_container -->|"loads settings"| node_settings
node_container -.->|"configures certificates"| node_network

click node_frontend "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/App.tsx"
click node_ui "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/components/ui.tsx"
click node_copy "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/lib/copy.ts"
click node_investigate "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Investigate.tsx"
click node_cases_page "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Cases.tsx"
click node_simulate "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Simulate.tsx"
click node_quality "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Quality.tsx"
click node_api_app "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/main.py"
click node_routes "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/tree/main/src/api/routes"
click node_troubleshooting "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/troubleshooting_service.py"
click node_agent_graph "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/graph.py"
click node_classifier "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/classifier_agent.py"
click node_analyst "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/analyst_agent.py"
click node_recommender "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/recommender_agent.py"
click node_judge "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/judge_agent.py"
click node_tools "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/tools.py"
click node_retriever "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/hybrid_retriever.py"
click node_filters "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/filters.py"
click node_embeddings "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/embeddings.py"
click node_keyword "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/keyword_index.py"
click node_vector "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/vector_store.py"
click node_context "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/context_builder.py"
click node_container "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/container.py"
click node_guardrails "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/guardrails.py"
click node_kpi "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/kpi_analyzer.py"
click node_prediction "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/ml/predictor.py"
click node_prioritization "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/prioritization.py"
click node_feedback "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/feedback_service.py"
click node_llm "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/llm_client.py"
click node_query_parser "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/query_parser.py"
click node_schema "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/schema.py"
click node_settings "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/config.py"
click node_network "https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/net.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_frontend,node_ui,node_copy,node_investigate,node_cases_page,node_simulate,node_quality toneBlue
class node_api_app,node_routes toneAmber
class node_troubleshooting,node_agent_graph,node_classifier,node_analyst,node_recommender,node_judge,node_tools toneMint
class node_retriever,node_filters,node_embeddings,node_keyword,node_vector,node_context toneRose
class node_container,node_guardrails,node_kpi,node_prediction,node_prioritization,node_feedback,node_llm,node_query_parser,node_schema,node_settings,node_network,node_engineer toneIndigo
```

## Components

### Engineer interface

- [React application](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/App.tsx): `frontend-react/src/App.tsx`
- [Shared UI](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/components/ui.tsx): `frontend-react/src/components/ui.tsx`
- [Interface copy](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/lib/copy.ts): `frontend-react/src/lib/copy.ts`
- [Investigate page](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Investigate.tsx): `frontend-react/src/pages/Investigate.tsx`
- [Cases page](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Cases.tsx): `frontend-react/src/pages/Cases.tsx`
- [Simulation page](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Simulate.tsx): `frontend-react/src/pages/Simulate.tsx`
- [Quality page](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/frontend-react/src/pages/Quality.tsx): `frontend-react/src/pages/Quality.tsx`

### API access

- [FastAPI application](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/main.py): `src/main.py`
- [API routes](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/tree/main/src/api/routes): `src/api/routes`

### Incident analysis

- [Troubleshooting service](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/troubleshooting_service.py): `src/services/troubleshooting_service.py`
- [Agent workflow](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/graph.py): `src/agents/graph.py`
- [Incident classifier](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/classifier_agent.py): `src/agents/classifier_agent.py`
- [Root-cause analyst](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/analyst_agent.py): `src/agents/analyst_agent.py`
- [Action recommender](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/recommender_agent.py): `src/agents/recommender_agent.py`
- [Answer judge](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/judge_agent.py): `src/agents/judge_agent.py`
- [Agent tools](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/agents/tools.py): `src/agents/tools.py`

### Case and runbook retrieval

- [Hybrid retriever](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/hybrid_retriever.py): `src/rag/hybrid_retriever.py`
- [Search filters](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/filters.py): `src/rag/filters.py`
- [Dense embeddings](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/embeddings.py): `src/rag/embeddings.py`
- [Keyword index](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/keyword_index.py): `src/rag/keyword_index.py`
- [Vector store](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/vector_store.py): `src/rag/vector_store.py`
- [Evidence context](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/rag/context_builder.py): `src/rag/context_builder.py`

### Runtime services

- [Service container](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/container.py): `src/services/container.py`
- [Input guardrails](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/guardrails.py): `src/services/guardrails.py`
- [KPI assessment](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/kpi_analyzer.py): `src/services/kpi_analyzer.py`
- [Risk prediction](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/ml/predictor.py): `src/services/ml/predictor.py`
- [Incident priority](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/prioritization.py): `src/services/prioritization.py`
- [Feedback and reranking](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/feedback_service.py): `src/services/feedback_service.py`
- [LLM client](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/llm_client.py): `src/services/llm_client.py`
- [Query understanding](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/services/query_parser.py): `src/services/query_parser.py`
- [Network domain schema](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/schema.py): `src/utils/schema.py`
- [Runtime settings](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/config.py): `src/utils/config.py`
- [Network utilities](https://github.com/kavinimuthamizhvalavan/kavinimuthamizhvalavan_telecom/blob/main/src/utils/net.py): `src/utils/net.py`

### Other components

- **NOC engineer**

## Connections

- NOC engineer → React application: submits incident (evidence: `README.md`)
- React application → Investigate page: routes to (evidence: `frontend-react/src/App.tsx`)
- React application → Cases page: routes to (evidence: `frontend-react/src/App.tsx`)
- React application → Simulation page: routes to (evidence: `frontend-react/src/App.tsx`)
- React application → Quality page: routes to (evidence: `frontend-react/src/App.tsx`)
- React application → Shared UI: renders
- Shared UI → Interface copy: uses text (evidence: `frontend-react/src/components/ui.tsx`)
- React application → FastAPI application: calls over HTTP (evidence: `README.md`)
- FastAPI application → API routes: registers (evidence: `src/main.py`)
- FastAPI application → Service container: builds services (evidence: `src/main.py`)
- API routes → Troubleshooting service: serves analysis (evidence: `src/api/routes/search.py`)
- Troubleshooting service → Input guardrails: checks input (evidence: `src/services/troubleshooting_service.py`)
- Troubleshooting service → Agent workflow: runs workflow (evidence: `src/services/troubleshooting_service.py`)
- Agent workflow → Incident classifier: dispatches (evidence: `src/agents/graph.py`)
- Agent workflow → Root-cause analyst: dispatches (evidence: `README.md`)
- Agent workflow → Action recommender: dispatches (evidence: `README.md`)
- Agent workflow → Answer judge: validates with (evidence: `README.md`)
- Root-cause analyst → Evidence context: builds evidence (evidence: `src/agents/analyst_agent.py`)
- Root-cause analyst → LLM client: requests analysis (evidence: `src/agents/analyst_agent.py`)
- Incident classifier → LLM client: requests classification (evidence: `src/agents/classifier_agent.py`)
- Root-cause analyst → Agent tools: uses tools (evidence: `src/agents/analyst_agent.py`)
- Agent tools → Hybrid retriever: searches cases (evidence: `src/agents/tools.py`)
- Agent tools → KPI assessment: assesses KPIs (evidence: `src/agents/tools.py`)
- Agent tools → Incident priority: calculates priority (evidence: `src/agents/tools.py`)
- Hybrid retriever → Search filters: validates filters (evidence: `src/rag/hybrid_retriever.py`)
- Hybrid retriever → Dense embeddings: embeds queries (evidence: `src/rag/hybrid_retriever.py`)
- Hybrid retriever → Keyword index: searches keywords (evidence: `src/rag/hybrid_retriever.py`)
- Hybrid retriever → Vector store: searches vectors (evidence: `src/rag/hybrid_retriever.py`)
- Hybrid retriever → Query understanding: parses query (evidence: `src/rag/hybrid_retriever.py`)
- Service container → Hybrid retriever: constructs (evidence: `src/services/container.py`)
- Service container → Dense embeddings: constructs (evidence: `src/services/container.py`)
- Service container → Feedback and reranking: constructs (evidence: `src/services/container.py`)
- Service container → LLM client: constructs (evidence: `src/services/container.py`)
- Service container → Risk prediction: constructs (evidence: `src/services/container.py`)
- Troubleshooting service → KPI assessment: assesses incident (evidence: `src/services/troubleshooting_service.py`)
- Troubleshooting service → Incident priority: sets priority (evidence: `src/services/troubleshooting_service.py`)
- Troubleshooting service → Feedback and reranking: records run (evidence: `src/services/troubleshooting_service.py`)
- Hybrid retriever → Feedback and reranking: uses rerank priors (evidence: `README.md`)
- Simulation page → FastAPI application: requests predictions (evidence: `README.md`)
- Cases page → FastAPI application: searches cases (evidence: `README.md`)
- Quality page → FastAPI application: loads quality data (evidence: `README.md`)
- KPI assessment → Network domain schema: uses KPI definitions (evidence: `src/utils/schema.py`)
- Search filters → Network domain schema: uses domain vocabularies (evidence: `src/rag/filters.py`)
- Service container → Runtime settings: loads settings (evidence: `src/services/container.py`)
- Service container → Network utilities: configures certificates (evidence: `src/main.py`)
