Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(vector): add ChromaDB community vector adapter#114

Open
Vasilije1990 wants to merge 1 commit into
maintopoteretes/cognee-community:mainfrom
feat/chromadb-vector-adaptertopoteretes/cognee-community:feat/chromadb-vector-adapterCopy head branch name to clipboard
Open

feat(vector): add ChromaDB community vector adapter#114
Vasilije1990 wants to merge 1 commit into
maintopoteretes/cognee-community:mainfrom
feat/chromadb-vector-adaptertopoteretes/cognee-community:feat/chromadb-vector-adapterCopy head branch name to clipboard

Conversation

@Vasilije1990

Copy link
Copy Markdown
Contributor

What

Adds ChromaDB as a community vector adapter, moving it out of cognee core. Mirrors the existing packages/vector/{milvus,qdrant,weaviate,azureaisearch} layout. Importing the package's register module registers the adapter with cognee via use_vector_adapter("chromadb", ChromaDBAdapter).

Companion core PR (removes ChromaDB from cognee core): topoteretes/cognee#2996

Package

packages/vector/chromadb/

  • cognee_community_vector_adapter_chromadb/chromadb_adapter.py — the adapter, ported verbatim from cognee core, with its two relative imports (..embeddings.EmbeddingEngine, ..vector_db_interface) rewritten to absolute cognee.* imports.
  • register.pyuse_vector_adapter("chromadb", ChromaDBAdapter).
  • __init__.py, pyproject.toml (chromadb>=0.6,<0.7 + cognee), README.md.
  • tests/test_chromadb.py — the end-to-end test ported from core, importing register and reading the shared packages/test_data fixtures.

Usage

import cognee
from cognee_community_vector_adapter_chromadb import register  # noqa: F401

cognee.config.set_vector_db_config({
    "vector_db_provider": "chromadb",
    "vector_db_url": "http://localhost:3002",
    "vector_db_key": "your-chroma-token",
})

Validation

Verified the registration path against cognee: before importing register, "chromadb" is absent from cognee's supported_databases; after import it's present and resolves to ChromaDBAdapter (name ChromaDB). All package modules compile.

🤖 Generated with Claude Code

Moves the ChromaDB adapter out of cognee core into a community package,
mirroring the milvus/qdrant/weaviate layout. Importing
`cognee_community_vector_adapter_chromadb.register` registers the adapter with
cognee via `use_vector_adapter("chromadb", ChromaDBAdapter)`.

Companion core PR removing it from cognee: topoteretes/cognee#2996.

- packages/vector/chromadb/cognee_community_vector_adapter_chromadb/{__init__,chromadb_adapter,register}.py
  (adapter ported verbatim from core; the two relative imports rewritten to
  absolute cognee.* imports).
- pyproject.toml (chromadb>=0.6,<0.7 + cognee), README, and the ported
  end-to-end test under tests/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.