How ysaibhanu99/klyvix works
Klyvix is a multi-persona AI assistant for academic and professional workflows. Users can authenticate, choose a persona, chat with streamed responses, and upload documents for grounded answers; the platform also supports research search and structured code or resume feedback. The backend routes chat through persona configuration, optional document retrieval, and provider selection, while Redis supports response caching and rate limiting. The README documents major capabilities beyond the sampled implementation excerpts; those are represented at subsystem level where exact internal wiring is not shown.
Main entry points: chat.py Chat endpoint · llm_client.py LLM routing and streaming · retrieval.py Document processing and retrieval · main.py FastAPI application
Components 20
Web interface
- Web application
backend/static/js/app.js - Chat interface
backend/static/js/components/chat.js - Structured cards
backend/static/js/components/structured.js - Upload interface
backend/static/js/components/upload.js - API client
backend/static/js/api.js
API workflows
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - Chat endpoint
backend/app/routers/chat.py - Upload endpoint
backend/app/routers/upload.py
AI and retrieval
- Six AI personas
backend/app/personas/registry.py - Document processing and retrieval
backend/app/core/retrieval.py - LLM routing and streaming
backend/app/core/llm_client.py
State and services
- Rate limiting
backend/app/core/rate_limit.py - Response cache
backend/app/core/cache.py - PostgreSQL
backend/app/models/database.py - Qdrant vectors
backend/app/core/retrieval.py - Redis
backend/app/core/cache.py
Other components
- User
- Gemini, Mistral, Groq
- Google Search grounding
Connections 28
- User → Web application: uses
README.md - Web application → API client: requests
README.md - API client → Chat endpoint: calls chat API
README.md - Chat endpoint → Six AI personas: loads persona
backend/app/routers/chat.py - Chat endpoint → Document processing and retrieval: retrieves context
backend/app/routers/chat.py - Chat endpoint → LLM routing and streaming: streams response
backend/app/routers/chat.py - Chat endpoint → Rate limiting: applies limit
backend/app/routers/chat.py - Chat endpoint → Authentication: verifies token
backend/app/routers/chat.py - Authentication → PostgreSQL: reads and writes users
backend/app/routers/auth.py - Authentication → User: issues JWT
backend/app/routers/auth.py - Upload endpoint → Document processing and retrieval: stores documents
backend/app/routers/upload.py - Upload endpoint → Rate limiting: applies limit
backend/app/routers/upload.py - Document processing and retrieval → PostgreSQL: stores metadata
backend/app/core/retrieval.py - Document processing and retrieval → Qdrant vectors: stores and searches vectors
backend/app/core/retrieval.py - Document processing and retrieval → LLM routing and streaming: requests embeddings
backend/app/core/retrieval.py - LLM routing and streaming → Six AI personas: selects provider settings
backend/app/core/llm_client.py - LLM routing and streaming → Response cache: reads and writes responses
backend/app/core/llm_client.py - LLM routing and streaming → Gemini, Mistral, Groq: streams completions
backend/app/core/llm_client.py - LLM routing and streaming → Google Search grounding: grounds research
README.md - Rate limiting → Response cache: increments counters
backend/app/core/rate_limit.py - Response cache → Redis: caches and counts
backend/app/core/cache.py - FastAPI application → Authentication: mounts router
backend/app/main.py - FastAPI application → Chat endpoint: mounts router
backend/app/main.py - FastAPI application → Upload endpoint: mounts router
backend/app/main.py - FastAPI application → Web application: serves frontend
backend/app/main.py - Chat interface → API client: uses API
- Upload interface → API client: uses API
- Structured cards → Web application: renders outputs