# rahulthumma-8/enterprise-ai-operations-assistant architecture

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

- Interactive diagram: https://gitdiagram.com/rahulthumma-8/enterprise-ai-operations-assistant
- Repository: https://github.com/rahulthumma-8/enterprise-ai-operations-assistant

## Overview

This is an Azure-backed enterprise IT operations assistant. A user submits a question through the FastAPI endpoint; the supervisor classifies it, and the API dispatches it to knowledge retrieval, troubleshooting, or document analysis before returning an answer. The repository also documents human review for high-impact troubleshooting, short-term conversation memory, and logging. The API’s human-review branch reports a pending review; the interactive CLI workflow in supervisor.py performs the review and can continue, reject, or request guidance. Edges reflect shown calls or README-documented integrations; setup scripts are omitted.

Main entry points: [`main.py`](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/main.py) (FastAPI API), [`supervisor.py`](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/supervisor.py) (Supervisor routing), [`knowledge_agent.py`](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/knowledge_agent.py) (Knowledge agent), [`document_agent.py`](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/document_agent.py) (Document agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request handling"]
  node_api["FastAPI API<br/>[main.py]"]
  node_supervisor["Supervisor routing<br/>[supervisor.py]"]
end

subgraph group_agents["Specialist agents"]
  node_knowledge["Knowledge agent<br/>[knowledge_agent.py]"]
  node_troubleshooting["Troubleshooting agent"]
  node_document["Document agent<br/>[document_agent.py]"]
end

subgraph group_services["Azure services"]
  node_search[("AI Search")]
  node_document_intelligence["Document Intelligence"]
  node_openai["Azure OpenAI"]
end

subgraph group_operations["Controls and state"]
  node_human_review["Human review"]
  node_memory[("Conversation memory<br/>[memory.py]")]
  node_logging["Application logging<br/>[logger.py]"]
end

node_user(("User"))

node_user -->|"submits request"| node_api
node_api -->|"routes question"| node_supervisor
node_api -->|"dispatches question"| node_knowledge
node_api -->|"dispatches question"| node_troubleshooting
node_api -->|"dispatches file query"| node_document
node_supervisor -->|"classifies intent"| node_openai
node_knowledge -->|"searches knowledge"| node_search
node_knowledge -->|"generates grounded answer"| node_openai
node_troubleshooting -->|"generates guidance"| node_openai
node_document -->|"extracts document text"| node_document_intelligence
node_document -->|"answers from extracted text"| node_openai
node_supervisor -->|"requests review"| node_human_review
node_supervisor -->|"continues after review"| node_troubleshooting
node_supervisor -->|"records routing history"| node_memory
node_api -->|"stores answer"| node_memory
node_supervisor -->|"logs routing"| node_logging
node_api -->|"logs request status"| node_logging

click node_api "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/main.py"
click node_supervisor "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/supervisor.py"
click node_knowledge "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/knowledge_agent.py"
click node_troubleshooting "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/troubleshooting_agent.py"
click node_document "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/document_agent.py"
click node_human_review "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/human_escalation.py"
click node_memory "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/memory.py"
click node_logging "https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/logger.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_api,node_supervisor,node_user toneBlue
class node_knowledge,node_troubleshooting,node_document toneAmber
class node_search,node_document_intelligence,node_openai toneMint
class node_human_review,node_memory,node_logging toneRose
```

## Components

### Request handling

- [FastAPI API](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/main.py): `main.py`
- [Supervisor routing](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/supervisor.py): `supervisor.py`

### Specialist agents

- [Knowledge agent](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/knowledge_agent.py): `knowledge_agent.py`
- [Troubleshooting agent](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/troubleshooting_agent.py): `troubleshooting_agent.py`
- [Document agent](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/document_agent.py): `document_agent.py`

### Azure services

- **AI Search**
- **Document Intelligence**
- **Azure OpenAI**

### Controls and state

- [Human review](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/human_escalation.py): `human_escalation.py`
- [Conversation memory](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/memory.py): `memory.py`
- [Application logging](https://github.com/rahulthumma-8/enterprise-ai-operations-assistant/blob/main/logger.py): `logger.py`

### Other components

- **User**

## Connections

- User → FastAPI API: submits request (evidence: `README.md`)
- FastAPI API → Supervisor routing: routes question (evidence: `main.py`)
- FastAPI API → Knowledge agent: dispatches question (evidence: `main.py`)
- FastAPI API → Troubleshooting agent: dispatches question (evidence: `main.py`)
- FastAPI API → Document agent: dispatches file query (evidence: `main.py`)
- Supervisor routing → Azure OpenAI: classifies intent (evidence: `supervisor.py`)
- Knowledge agent → AI Search: searches knowledge (evidence: `knowledge_agent.py`)
- Knowledge agent → Azure OpenAI: generates grounded answer (evidence: `knowledge_agent.py`)
- Troubleshooting agent → Azure OpenAI: generates guidance (evidence: `troubleshooting_agent.py`)
- Document agent → Document Intelligence: extracts document text (evidence: `document_agent.py`)
- Document agent → Azure OpenAI: answers from extracted text (evidence: `document_agent.py`)
- Supervisor routing → Human review: requests review (evidence: `supervisor.py`)
- Supervisor routing → Troubleshooting agent: continues after review (evidence: `supervisor.py`)
- Supervisor routing → Conversation memory: records routing history (evidence: `supervisor.py`)
- FastAPI API → Conversation memory: stores answer (evidence: `main.py`)
- Supervisor routing → Application logging: logs routing (evidence: `supervisor.py`)
- FastAPI API → Application logging: logs request status (evidence: `main.py`)
