How harrish4693/resolveai works
ResolveAI is a multilingual customer-support system. Customers submit text or audio through the demo UI; the API transcribes audio when needed and sends text to the agent. The agent detects language, cleans and classifies the query, retrieves policy or ticket context through tools, and returns a response while recording support tickets and conversations. Separate ingestion builds the retrieval index from policy documents and sample tickets. The graph preserves documented voice, retrieval, escalation, ticket-history, and health/reindex capabilities; unsampled implementation details are omitted where their call paths cannot be verified.
Main entry points: react_agent.py ReAct workflow · main.py Support API · ingest.py Index ingestion · crud.py Ticket operations
Components 21
Entry and interface
- Demo UI
ui/streamlit_app.py - Support API
app/main.py - Speech transcription
app/voice/stt.py
Query handling
- ReAct workflow
app/agent/react_agent.py - Language detection
app/nlp/lang_detect.py - Text preprocessing
app/nlp/preprocess.py - Intent and sentiment
app/nlp/intent_sentiment.py - Priority escalation
app/priority/escalation.py - Agent tools
app/agent/tools.py
Knowledge retrieval
- Index ingestion
app/rag/ingest.py - Policy knowledge base
data/knowledge_base - Sample tickets
data/sample_tickets.csv - Vector retrieval
app/rag/embed_store.py - FAISS index
Ticket records
- Ticket operations
app/db/crud.py - Ticket data model
app/db/models.py - Ticket database
Model and configuration
- LLM generation
app/llm/generate.py - LLM provider
- Application settings
app/config.py
Other components
- Customer
Connections 25
- Customer → Demo UI: submits query
README.md - Demo UI → Support API: calls API
ui/streamlit_app.py - Support API → Speech transcription: transcribes audio
app/main.py - Support API → ReAct workflow: runs workflow
app/main.py - Support API → Ticket operations: serves ticket queries
app/main.py - Support API → Vector retrieval: rebuilds index
app/main.py - Support API → Index ingestion: exposes ingestion
app/main.py - ReAct workflow → Language detection: detects language
app/agent/react_agent.py - ReAct workflow → Text preprocessing: cleans query
app/agent/react_agent.py - ReAct workflow → Intent and sentiment: analyzes query
app/agent/react_agent.py - ReAct workflow → LLM generation: gets LLM
app/agent/react_agent.py - ReAct workflow → Priority escalation: assesses priority
app/agent/react_agent.py - ReAct workflow → Agent tools: registers tools
app/agent/react_agent.py - ReAct workflow → Ticket operations: records tickets
app/agent/react_agent.py - Agent tools → Vector retrieval: searches context
app/agent/tools.py - Agent tools → Ticket operations: looks up tickets
app/agent/tools.py - Index ingestion → Policy knowledge base: loads documents
app/rag/ingest.py - Index ingestion → Sample tickets: loads examples
app/rag/ingest.py - Index ingestion → FAISS index: builds index
app/rag/ingest.py - Vector retrieval → FAISS index: searches index
- LLM generation → LLM provider: invokes model
- Application settings → LLM generation: configures model
app/llm/generate.py - Application settings → Ticket data model: configures database
app/db/models.py - Ticket operations → Ticket data model: queries models
app/db/crud.py - Ticket data model → Ticket database: persists records
app/db/models.py