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#114Vasilije1990 wants to merge 1 commit intomaintopoteretes/cognee-community:mainfrom feat/chromadb-vector-adaptertopoteretes/cognee-community:feat/chromadb-vector-adapterCopy head branch name to clipboard
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sregistermodule registers the adapter with cognee viause_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 absolutecognee.*imports.register.py—use_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, importingregisterand reading the sharedpackages/test_datafixtures.Usage
Validation
Verified the registration path against cognee: before importing
register,"chromadb"is absent from cognee'ssupported_databases; after import it's present and resolves toChromaDBAdapter(nameChromaDB). All package modules compile.🤖 Generated with Claude Code