cargo doc -p <crate> --no-deps --open).
| Concern | Trait (crate) | Providers | Selected by |
|---|---|---|---|
| LLM | Llm (cognee-llm) | OpenAIAdapter (OpenAI/Ollama/vLLM/llama.cpp), MockLlm (testing) | LLM_PROVIDER, LLM_MODEL, LLM_ENDPOINT |
| Embeddings | EmbeddingEngine (cognee-embedding) | OnnxEmbeddingEngine (local BGE-Small), OpenAICompatibleEmbeddingEngine, OllamaEmbeddingEngine, MockEmbeddingEngine | EMBEDDING_PROVIDER (+ MOCK_EMBEDDING) |
| Vector DB | VectorDB (cognee-vector) | BruteForceVectorDB (in-memory, default), PgVectorAdapter (feature pgvector), MockVectorDB (testing) | VECTOR_DB_PROVIDER (brute-force/pgvector) |
| Graph DB | GraphDBTrait (cognee-graph) | LadybugAdapter (embedded), PgGraphAdapter (feature postgres) | GRAPH_DATABASE_PROVIDER (ladybug/kuzu/postgres) |
| Relational DB | IngestDb/SearchHistoryDb/DeleteDb (cognee-database) | DatabaseConnection — SQLite / Postgres via SeaORM | DB_PROVIDER, DATABASE_URL |
| File storage | StorageTrait (cognee-storage) | LocalStorage (file://), MockStorage | STORAGE_BACKEND |
| Session store | SessionStore (cognee-session) | FsSessionStore, RedisSessionStore, SeaOrmSessionStore | COGNEE_SESSION_STORE (server) |
| Ontology | OntologyResolver (cognee-ontology) | RdfLibOntologyResolver, NoOpOntologyResolver | ONTOLOGY_RESOLVER |
| Tokenizer (chunking) | TokenCounter (cognee-chunking) | WordCounter, HuggingFaceTokenCounter (feature), TikTokenCounter (feature) | COGNEE_TOKEN_COUNTER |
- Embedded by default. A plain build runs entirely locally: in-memory brute-force vector index, embedded Ladybug (graph), SQLite (relational), local file storage. No native vector-store dependencies are required.
- Feature gates.
pgvector,pggraph/postgres, and thehf-tokenizer/tiktokencounters are cargo features, on by default incognee-lib/cognee-cli— see architecture.md §feature strategy. - Closed-source companions. Embedded Qdrant (
cognee-vector-qdrant) and on-device LiteRT inference (cognee-llm-litert, Android) live in the closedcognee-cloud-rsrepository and are not part of OSS. - Full Postgres stack (relational + graph + vector on one Postgres) is the one remaining adapter milestone — see roadmap/.
MockEmbeddingEngine, MockGraphDB, MockVectorDB, and MockStorage (the
testing feature) back the test suite — see
test patterns.