1
Access Layer
Open WebUI
Complete
Web Interface • PostgreSQL • v0.7.2
Primary web chat interface with persistent user profiles, settings, and conversation history. Multi-user support with authentication and real-time streaming responses.
OpenClaw Gateway
Active
Messaging Gateway • Docker
Multi-channel messaging gateway normalizing inbound/outbound messages. Supports WhatsApp, Telegram, Discord, Slack. Configured with SN-Assist as model provider.
↓
2
Application Layer
FastAPI Core
Complete
Python • OpenAI-Compatible API
Core API with OpenAI-compatible /v1/chat/completions endpoint. Handles request routing, authentication, streaming responses, and progress indicators.
LangGraph Swarm
Complete
LangGraph • 6 Domain Agents
Multi-agent orchestration with main orchestrator delegating to domain specialists: ServiceNow, ITIL, SAFe, Audit, BPM, Six Sigma. Handoff mechanisms and response synthesis.
GraphRAG Engine
Complete
Hybrid Search • Vector + Graph
Hybrid retrieval merging vector similarity (Qdrant) with graph traversal (Neo4j). Query routing for user-scoped vs knowledge questions. Source citations.
Query Pipeline
Complete
Prompt Enhancement • Clarification
Pre-processing pipeline with query clarity scoring. Automatic prompt enhancement for salvageable queries and conversational clarification for vague inputs.
Context Manager
Complete
Multi-Tier • Token Budgeting
Multi-tier context window management for long conversations (200+ messages). Tier 1 (hot): verbatim, Tier 2 (warm): summaries, Tier 3 (cold): compressed.
Self-Evolution
Complete
5-Layer Pipeline • Evidence-Gated
Feedback-first self-improvement: Harvester (15min), Accumulator (1hr), Proposer, A/B Gatekeeper (p<0.05), KB Expander. Circuit breaker protected.
Project Companion
In Progress
Kanban • Risk Management • Phased
Universal project management: cert prep, implementations, Six Sigma initiatives. Phases, tasks, milestones, risks, collaborators, real-time board.
Learning Workflows
Complete
CSA Prep • Quizzes • Progress
Guided learning with 20-day CSA exam prep curriculum. Adaptive quizzing, progress tracking, weak area identification, multi-session persistence.
↓
3
Knowledge & Data Layer
Neo4j
Complete
Knowledge Graph • 176 Docs • 3221 Chunks
Graph database storing entities and relationships. Document-chunk relationships enable graph traversal for multi-hop reasoning and context expansion.
Qdrant
Complete
Vector DB • 1536-dim • Cosine
Vector database for semantic similarity search. Stores embeddings with metadata and source links. HNSW indexing for fast retrieval.
PostgreSQL
Complete
System of Record • Users • Conversations
Primary database for users, profiles, conversations, messages, learning plans, projects, and evolution metrics. Separate snassist and openwebui databases.
Redis
Complete
Queue • Cache • Pub/Sub
Per-conversation queuing for sequential processing. Caching for user context and learning data. Pub/sub for real-time board updates.
↓
4
External Services
OpenAI
Primary
GPT-5 • GPT-4o-mini • Embeddings
Primary LLM provider. GPT-5 for orchestrator (400K context), GPT-4o-mini for domain agents and summarization. text-embedding-3-small for vectors.
OpenRouter
Fallback
Free Tier • Cheap Models
Fallback LLM provider for cost optimization. Free tier (google/gemma-2-9b-it:free) and cheap models as secondary fallbacks.
Google Gemini
Fallback
2.5 Flash • 1M Context • Web Search
Tertiary fallback and web retrieval. 2.5 Flash for JIT web retrieval when KB confidence is low. 1M token context for large documents.
Animated Data Flows
Chat Query Flow
- 1User sends message via Open WebUI or messaging platform
- 2Nginx routes to FastAPI /v1/chat/completions endpoint
- 3Query Pipeline scores clarity - enhances or clarifies as needed
- 4Identity Bridge resolves user ID for cross-session memory
- 5Context Builder assembles 3-tier window with summaries
- 6GraphRAG retrieves from Qdrant (vectors) + Neo4j (graph)
- 7Orchestrator classifies domains and delegates to specialists
- 8Domain agents (ServiceNow, ITIL, etc.) process with RAG context
- 9Responses synthesized, scored, formatted with citations
- 10Streaming response with stage indicators (searching → analyzing → formulating)
Feature Manifest
28
Complete
4
In Progress
5
Planned
3
Backlog
Guided Learning Workflows
3 features
▼
Learning Plans
20-day CSA exam prep with progress tracking and weak area identification
Quiz Generation
Adaptive quizzing with KB + LLM generation, scoring, and remediation
Open WebUI Integration
Filter function for context injection, Tool functions for quiz/progress
Infrastructure & Deployment
6 features
▼
Local Docker Stack
Split app/data plane with Docker Compose, 9 services running locally
Knowledge Base
176 documents across 12 domains, 3,221 chunks in Neo4j + Qdrant
VPS Deployment
Hostinger VPS with Tailscale VPN, UFW firewall, Let's Encrypt SSL
Monitoring & Alerts
Prometheus metrics, Grafana dashboards, alerting rules
iMessage & Signal
Additional messaging channels via OpenClaw (deferred)
No docs yet
Enterprise SSO
SAML/LDAP integration for enterprise deployments (future phase)
No docs yet
Knowledge Base Expansion
2 features
▼
CSA Content Ingestion
130-150 additional documents for Data Administration, UI/Navigation domains
KB 1000+ Target
Expand from 176 to 1000+ documents across all domains
Planning phase
Complete (Built & Working)
In Progress (Built, integrating)
Planned (In design/docs)
Backlog (GitHub issues, not planned)