How alexkinda1/chatbot-rag-assistance-client. works
MOKABOT is a technical-support chatbot for MOKACO coffee machines, built around RAG. Users ask questions through either the HTTP API or terminal CLI; the chat engine retrieves relevant manual passages from Qdrant, reranks them, and generates a response with Gemini. A separate ingestion workflow reads source documents, chunks and embeds them, then stores them in Qdrant. The graph includes configuration and prompt behavior; some ingestion stages and retrieval details are documented in the README rather than independently sampled source.
Main entry points: loader.py Chat engine · pipeline.py Read and chunk · configuration.py Model settings · app.py Chat API
Components 18
User interfaces
- Chat API
src/api/app.py - Request and response models
src/api/models.py - Chat CLI
src/cli/main.py
Chat engine
- Chat engine
src/engine/loader.py - Passage reranker
src/engine/loader.py - Conversation memory
src/engine/loader.py
Document ingestion
- Read and chunk
src/ingestion/pipeline.py - Document embeddings
src/ingestion/pipeline.py - Ingestion indexing
src/ingestion/pipeline.py - Alternate ingestion
src/ingestion/load_data.py
Configuration
- System prompt
src/config/prompts.py - Model settings
src/config/configuration.py - Runtime parameters
src/config/params.py
Other components
- API client
- CLI user
- Manual documents
- Qdrant vector store
- Google Gemini
Connections 22
- API client → Chat API: sends question
README.md - Chat API → Request and response models: validates and formats
src/api/app.py - Chat API → Chat engine: queries
src/api/app.py - CLI user → Chat CLI: enters question
src/cli/main.py - Chat CLI → Chat engine: queries
src/cli/main.py - Chat engine → Qdrant vector store: loads index
src/engine/loader.py - Chat engine → Passage reranker: configures
src/engine/loader.py - Chat engine → Conversation memory: configures
src/engine/loader.py - Chat engine → System prompt: uses prompt
src/engine/loader.py - Chat engine → Model settings: configures models
src/engine/loader.py - Chat engine → Qdrant vector store: retrieves passages
README.md - Chat engine → Google Gemini: generates response
README.md - Manual documents → Read and chunk: provides source files
README.md - Read and chunk → Document embeddings: chunks for embedding
README.md - Document embeddings → Ingestion indexing: produces vectors
README.md - Ingestion indexing → Qdrant vector store: stores vectors
src/ingestion/pipeline.py - Read and chunk → Model settings: uses model configuration
src/ingestion/pipeline.py - Alternate ingestion → Qdrant vector store: stores indexed documents
src/ingestion/load_data.py - Alternate ingestion → Runtime parameters: reads paths and model settings
src/ingestion/load_data.py - Model settings → Runtime parameters: reads model parameters
src/config/configuration.py - Model settings → Google Gemini: configures LLM and embeddings
src/config/configuration.py - Read and chunk → Runtime parameters: reads ingestion parameters
src/ingestion/pipeline.py