How rehanshaikh-ai/hyades works
Knowledge Atlas is a personal knowledge platform for capturing notes and source documents, connecting them in a knowledge graph, and retrieving grounded answers with citations. The main workflow runs from the web app through API routes into ingestion, indexing, search, and assistant services; background jobs handle non-blocking processing. Notes, sources, graph data, and assistant conversations are distinct product stages. The graph includes key storage and provider integrations. Some frontend and service wiring is unsampled, so those relationships are omitted unless documented in the README or visible in an indexed excerpt.
Main entry points: router.py Versioned API · retrieval_service.py Hybrid retrieval · source_processing_service.py Source processing · graph_rag_service.py Graph reasoning
Components 24
Web experience
- Knowledge Atlas UI
frontend/src/App.tsx - Knowledge workspaces
frontend/src/pages - API client
frontend/src/api/client.ts
API boundary
- Versioned API
backend/app/api/v1/router.py - Source routes
backend/app/api/v1/sources.py - Note routes
backend/app/api/v1/notes.py - Search routes
backend/app/api/v1/search.py - RAG routes
backend/app/api/v1/rag.py - Graph routes
backend/app/api/v1/graph_rag.py
Knowledge capture
- Source processing
backend/app/services/source_processing_service.py - Notes and versions
backend/app/services/note_service.py - Knowledge graph
backend/app/services/graph_service.py
Search and reasoning
- Hybrid retrieval
backend/app/services/retrieval_service.py - Grounded assistant
backend/app/services/rag_service.py - Graph reasoning
backend/app/services/graph_rag_service.py - LLM providers
backend/app/services/llm_service.py
Processing and storage
- Background worker
backend/app/jobs/worker.py - Job service
backend/app/services/job_service.py - PostgreSQL
backend/app/db/session.py - Qdrant vectors
- Redis queue
- Git revisions
Other components
- Knowledge worker
- User knowledge
Connections 28
- Knowledge worker → Knowledge Atlas UI: uses
- Knowledge Atlas UI → Knowledge workspaces: presents
- Knowledge workspaces → API client: requests
- API client → Versioned API: calls API
- Versioned API → Source routes: registers
backend/app/api/v1/router.py - Versioned API → Note routes: registers
backend/app/api/v1/router.py - Versioned API → Search routes: registers
backend/app/api/v1/router.py - Versioned API → RAG routes: registers
backend/app/api/v1/router.py - Versioned API → Graph routes: registers
backend/app/api/v1/router.py - Source routes → Source processing: dispatches
- Note routes → Notes and versions: delegates
- Search routes → Hybrid retrieval: delegates
- RAG routes → Grounded assistant: calls
backend/app/api/v1/rag.py - Graph routes → Graph reasoning: calls
backend/app/api/v1/graph_rag.py - Source processing → Background worker: queued processing
backend/app/jobs/worker.py - Background worker → Job service: uses
backend/app/jobs/worker.py - Grounded assistant → Hybrid retrieval: retrieves
backend/app/services/rag_service.py - Grounded assistant → LLM providers: generates answer
backend/app/services/rag_service.py - Graph reasoning → Hybrid retrieval: retrieves
backend/app/services/graph_rag_service.py - Graph reasoning → LLM providers: generates answer
backend/app/services/graph_rag_service.py - Hybrid retrieval → Qdrant vectors: semantic search
backend/app/services/retrieval_service.py - Hybrid retrieval → PostgreSQL: reads chunks
backend/app/services/retrieval_service.py - Graph reasoning → PostgreSQL: traverses graph
backend/app/services/graph_rag_service.py - Source processing → PostgreSQL: stores records
- Source processing → Qdrant vectors: indexes chunks
- Background worker → Redis queue: uses queue
- Notes and versions → Git revisions: versions notes
- LLM providers → User knowledge: streams response