Skip to main content
cognee-rust is built on trait abstractions so each storage/compute backend can be swapped via configuration. Pick providers with the env vars / config keys in Configuration; the trait + adapter detail is in rustdoc (cargo doc -p <crate> --no-deps --open). Notes:
  • Embedded by default. A plain build runs entirely locally: LanceDB vector index, embedded Ladybug (graph), SQLite (relational), local file storage. The brute-force vector index is used on Android or with VECTOR_DB_URL=:memory:.
  • Feature gates. pgvector, pggraph/postgres, and the hf-tokenizer/tiktoken counters are cargo features, on by default in cognee-lib/cognee-cli — see Architecture: feature strategy.
  • Closed-source companions. Embedded Qdrant (cognee-vector-qdrant) and on-device LiteRT inference (cognee-llm-litert, Android) live in the closed cognee-cloud-rs repository 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.