Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8925442
Add Support ChromaDB
dm1tryG Mar 8, 2025
0973e42
Update lock file deps
dm1tryG Mar 9, 2025
3021f1a
Merge branch 'dev' into feature/support-chromadb
hajdul88 Mar 11, 2025
1feee13
fix: fixes ruff format
hajdul88 Mar 11, 2025
6a2ef72
feat: adds chroma_db_test to github actions
hajdul88 Mar 11, 2025
9483b6e
deletes volume from yml
hajdul88 Mar 11, 2025
6879b7a
updates health check
hajdul88 Mar 11, 2025
26d5d7d
healthcheck update
hajdul88 Mar 11, 2025
04e4860
deletes volume once again
hajdul88 Mar 11, 2025
21ba967
updates chroma test
hajdul88 Mar 11, 2025
c6532d0
updates image and adds volume
hajdul88 Mar 11, 2025
6df6cc8
deletes healthcheck
hajdul88 Mar 11, 2025
4bdee26
changes port
hajdul88 Mar 11, 2025
570204d
removes hardcoded config from test
hajdul88 Mar 11, 2025
bb469aa
adds hardcoded values for local test
hajdul88 Mar 11, 2025
3dfc41a
Merge branch 'dev' into support_chromadb_tests_fix
Vasilije1990 Mar 11, 2025
b56332b
Merge remote-tracking branch 'origin/dev' into support_chromadb_tests…
hajdul88 Mar 12, 2025
2970b23
updates poetry lock file
hajdul88 Mar 12, 2025
b28624c
Fix original_key splits
dm1tryG Mar 12, 2025
a299bd6
give back the distance from all the elements
dm1tryG Mar 12, 2025
645be10
uncomment chroma profile
dm1tryG Mar 12, 2025
eae2f76
rm print
dm1tryG Mar 12, 2025
dc73728
change batch_search with normalize_distances
dm1tryG Mar 12, 2025
8b874ad
update docker-compose.yml
dm1tryG Mar 12, 2025
3a682fe
rm test_local_file_deletion
dm1tryG Mar 12, 2025
53428c6
chromadb as extra in pyproject.toml
dm1tryG Mar 12, 2025
18d818f
rename get_table_names
dm1tryG Mar 12, 2025
3362e6d
Merge branch 'feature/support-chromadb' into support_chromadb_tests_fix
hajdul88 Mar 13, 2025
9954a09
chore: updates naming based on comments
hajdul88 Mar 13, 2025
e60c398
chore: updates naming based on comments
hajdul88 Mar 13, 2025
990a04c
Merge branch 'dev' into feature/support-chromadb
hajdul88 Mar 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GRAPH_DATABASE_URL=
GRAPH_DATABASE_USERNAME=
GRAPH_DATABASE_PASSWORD=

# "qdrant", "pgvector", "weaviate", "milvus" or "lancedb"
# "qdrant", "pgvector", "weaviate", "milvus", "lancedb" or "chromadb"
VECTOR_DB_PROVIDER="lancedb"
# Not needed if using "lancedb" or "pgvector"
VECTOR_DB_URL=
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/test_chromadb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: test | chromadb

on:
workflow_dispatch:
pull_request:
types: [labeled, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
RUNTIME__LOG_LEVEL: ERROR

jobs:
run_chromadb_integration_test:
name: chromadb test
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
services:
chromadb:
image: chromadb/chroma:0.6.3
volumes:
- chroma-data:/chroma/chroma
ports:
- 3002:8000

steps:
- name: Check out
uses: actions/checkout@master

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11.x'

- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Install dependencies
run: poetry install --no-interaction

- name: Run chromadb test
env:
ENV: 'dev'
VECTOR_DB_PROVIDER: chromadb
VECTOR_DB_URL: http://localhost:3002
VECTOR_DB_KEY: test-token
LLM_MODEL: ${{ secrets.LLM_MODEL }}
LLM_ENDPOINT: ${{ secrets.LLM_ENDPOINT }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_API_VERSION: ${{ secrets.LLM_API_VERSION }}
EMBEDDING_MODEL: ${{ secrets.EMBEDDING_MODEL }}
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: poetry run python ./cognee/tests/test_chromadb.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,6 @@ node_modules/

# Evals
SWE-bench_testsample/

# ChromaDB Data
.chromadb_data/
8 changes: 7 additions & 1 deletion cognee/api/v1/settings/routers/get_settings_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class LLMConfigInputDTO(InDTO):


class VectorDBConfigInputDTO(InDTO):
provider: Union[Literal["lancedb"], Literal["qdrant"], Literal["weaviate"], Literal["pgvector"]]
provider: Union[
Literal["lancedb"],
Literal["chromadb"],
Literal["qdrant"],
Literal["weaviate"],
Literal["pgvector"],
]
url: str
api_key: str

Expand Down
Loading