How hillzeealex/vektoria works
Vektoria is a self-hosted vector database for local document ingestion and vector, keyword, or hybrid retrieval. A typical flow accepts a document through the REST API, extracts and chunks its text, embeds the chunks, and stores them in an index; queries are embedded and searched against that index. Raw-vector clients can also use the API, and the read-only dashboard uses its endpoints. The graph reflects documented behavior and sampled calls; some server-route details and index internals were not fully excerpted.
Main entry points: server.py REST API · pipeline.py Ingestion pipeline · index.py Index operations · embedding.py Text embedding
Components 14
Document ingestion
- Text extraction
vektoria/ingest/extract.py - Text chunking
vektoria/ingest/chunk.py - Ingestion pipeline
vektoria/ingest/pipeline.py - Text embedding
vektoria/embedding.py
API and management
- Read-only dashboard
vektoria/dashboard.py - REST API
vektoria/server.py - Index manager
vektoria/manager.py
Index and retrieval
- Index operations
vektoria/index.py - SQLite index store
vektoria/index.py - BM25 keyword search
vektoria/bm25.py - Vector backend
vektoria/backends.py
Optional integrations
- TurboVec ANN adapter
vektoria/ann.py
Other components
- API client
- Ollama embedding service
Connections 16
- API client → REST API: calls REST API
README.md - REST API → Index manager: manages indexes
vektoria/server.py - Index manager → Index operations: opens and creates
vektoria/manager.py - REST API → Read-only dashboard: serves page
vektoria/server.py - Read-only dashboard → REST API: fetches index and query endpoints
vektoria/dashboard.py - REST API → Ingestion pipeline: routes document ingestion
README.md - Ingestion pipeline → Text extraction: extracts text
vektoria/ingest/pipeline.py - Ingestion pipeline → Text chunking: chunks text
vektoria/ingest/pipeline.py - Ingestion pipeline → Text embedding: embeds chunks
vektoria/ingest/pipeline.py - Ingestion pipeline → Index operations: upserts vectors
vektoria/ingest/pipeline.py - REST API → Text embedding: embeds text queries
README.md - Index operations → SQLite index store: persists vectors and metadata
README.md - Index operations → BM25 keyword search: uses keyword ranking
vektoria/index.py - Index operations → Vector backend: delegates vector search
vektoria/index.py - Vector backend → TurboVec ANN adapter: loads optional adapter
vektoria/backends.py - Text embedding → Ollama embedding service: requests embeddings
vektoria/embedding.py