How mosoulzz/cppagentraginterview works
CppAgentRAGInterview is a C++ HTTP service with a React web client, providing AgentRAG knowledge-base chat and AI mock interviews. The main workflows are document upload through indexing and cited retrieval to chat responses, and interview analysis through voice interaction, scoring, and reporting. The graph preserves those domain stages plus authentication, session management, and the documented persistence and model integrations. Relationships are based on README statements; sampled source adds implementation context, but unsampled handler wiring is not asserted.
Main entry points: RagEngine.cpp RAG orchestration · api RAG API handlers · IngestPipeline.cpp Document ingestion · ChatServer.cpp Chat server
Components 26
Web client
- React application
frontend/web/src/App.tsx - RAG interface
frontend/web/src/pages/RagPage.tsx - RAG API client
frontend/web/src/ragApi.ts
HTTP and identity
- Chat server
apps/chatserver/src/ChatServer.cpp - Authentication handlers
apps/chatserver/src/features/auth/api - Session storage
apps/chatserver/src/session/RedisSessionStorage.cpp
AgentRAG
- RAG API handlers
apps/chatserver/src/features/rag/api - Upload job manager
apps/chatserver/src/rag/UploadJobManager.cpp - Document ingestion
apps/chatserver/src/rag/IngestPipeline.cpp - Document library
apps/chatserver/src/rag/DocumentLibrary.cpp - Hybrid retrieval
apps/chatserver/src/rag/RetrievalPipeline.cpp - RAG orchestration
apps/chatserver/src/rag/RagEngine.cpp - RAG tool agent
apps/chatserver/src/rag/RagAgent.cpp - Conversation memory
apps/chatserver/src/rag/ConversationMemory.cpp - Audit and trash
apps/chatserver/src/rag/RagAuditStore.cpp
AI interview
- Interview handlers
apps/chatserver/src/features/interview/api - Interview engine
apps/chatserver/src/interview/InterviewEngine.cpp - Interview persistence
apps/chatserver/src/interview/InterviewStore.cpp
AI and persistence
- LLM and models
libs/ai-core/src/LlmClient.cpp - Embedding client
libs/ai-core/src/EmbeddingClient.cpp - Document parser
libs/ai-core/src/DocumentParser.cpp - MySQL
- Redis
- Milvus
Other components
- Browser user
- External AI services
Connections 31
- Browser user → React application: uses
README.md - React application → Chat server: sends requests
README.md - React application → RAG interface: renders
README.md - RAG interface → RAG API client: uses API
README.md - Chat server → Authentication handlers: routes requests
README.md - Chat server → RAG API handlers: routes requests
README.md - Chat server → Interview handlers: routes requests
README.md - Authentication handlers → Session storage: manages sessions
README.md - Session storage → Redis: persists sessions
README.md - RAG API handlers → Upload job manager: starts jobs
README.md - Upload job manager → Document ingestion: processes documents
README.md - Document ingestion → Document parser: parses documents
README.md - Document ingestion → Embedding client: creates vectors
README.md - Document ingestion → Document library: updates index
README.md - Document ingestion → Milvus: writes vectors
README.md - RAG API handlers → RAG orchestration: handles questions
README.md - RAG orchestration → Hybrid retrieval: retrieves context
README.md - Hybrid retrieval → Milvus: searches vectors
README.md - Hybrid retrieval → Document library: searches BM25
README.md - RAG orchestration → LLM and models: generates answers
README.md - RAG orchestration → RAG tool agent: orchestrates tools
README.md - RAG orchestration → Conversation memory: uses memory
README.md - RAG orchestration → External AI services: calls models
README.md - RAG API handlers → Audit and trash: records operations
README.md - RAG API handlers → MySQL: persists messages
README.md - RAG orchestration → Redis: shares memory
README.md - Interview handlers → Interview engine: runs interview
README.md - Interview engine → LLM and models: scores answers
README.md - Interview engine → Interview persistence: stores results
README.md - Interview persistence → MySQL: persists sessions
README.md - Interview handlers → External AI services: uses speech services
README.md