How docker/genai-stack works
Main Components
a) Core Infrastructure:
• Neo4j Database (vector storage + knowledge graph)
• Ollama/OpenAI/Claude LLM Service
• Embedding Service (multiple options: sentence_transformer, openai, aws, google-genai)
b) Applications Layer:
• Support Bot (bot.py)
• Stack Overflow Loader (loader.py)
• PDF Reader Bot (pdf_bot.py)
• Standalone API (api.py)
• Frontend Application (front-end/)
┌─ Client Layer ─────────────────────────────────┐
• Web UIs (Ports 8501-8505) │
• Svelte Frontend │
• ┬─────────────────────────┘
• ↓
┌─ Application Layer ───────────────────────────┐
• ┌─────────┐ ┌────────┐ ┌───────┐ ┌─────────┐ │
• Support │ │Loader │ │PDF │ │API │ │
• Bot │ │App │ │Reader │ │Service │ │
• ┬────┘ └───┬────┘ └───┬───┘ └────┬────┘ │
• ┼──────────┼─────────┼──────────┼───────┘
• ↓ ↓ ↓ ↓
┌─ Service Layer ──────────────────────────────┐
• ┌─────────────┐ ┌──────────────────────┐ │
• Chain Service│ │Embedding Service │ │
• (chains.py) │ │(Multiple Providers) │ │
• ┘ └──────────────────────┘ │
• ┬─────────────────┬────────────────┘
• ↓ ↓
┌─ Infrastructure Layer ─────────────────────────┐
• ┌─────────────┐ ┌──────────────────────┐ │
• Neo4j │ │LLM Service │ │
• Database │◄──►│(Ollama/OpenAI/Claude)│ │
• ┘ └──────────────────────┘ │
• ┘
Important Elements to Highlight
a) Data Flow Patterns:
• Bidirectional communication between apps and Neo4j
• Streaming responses from LLM services
• Vector embedding flow from content to database
b) Integration Points:
• Environment configuration connections
• API endpoints and ports
• Docker container relationships
Technical Details
• Port mappings (8501-8505)
• Database connection (7474/7687)
• External service connections (Ollama: 11434)
• Environment variable dependencies