diff --git a/chromadb/__init__.py b/chromadb/__init__.py index cc49fb1eadc..39c4c13af30 100644 --- a/chromadb/__init__.py +++ b/chromadb/__init__.py @@ -45,7 +45,7 @@ __settings = Settings() -__version__ = "0.5.3" +__version__ = "0.5.4" # Workaround to deal with Colab's old sqlite3 version diff --git a/chromadb/server/fastapi/__init__.py b/chromadb/server/fastapi/__init__.py index e1f30ecfe6e..f42d93aba3d 100644 --- a/chromadb/server/fastapi/__init__.py +++ b/chromadb/server/fastapi/__init__.py @@ -566,7 +566,6 @@ def process_create_collection( request: Request, tenant: str, database: str, raw_body: bytes ) -> CollectionModel: create = CreateCollection.model_validate(orjson.loads(raw_body)) - configuration = ( CollectionConfigurationInternal() if not create.configuration diff --git a/chromadb/server/fastapi/types.py b/chromadb/server/fastapi/types.py index 861a9f39ba2..f644ff7883b 100644 --- a/chromadb/server/fastapi/types.py +++ b/chromadb/server/fastapi/types.py @@ -57,7 +57,10 @@ class DeleteEmbedding(BaseModel): class CreateCollection(BaseModel): name: str # TODO: Make CollectionConfiguration a Pydantic model - configuration: Optional[Dict[str, Any]] + # In 0.5.4 we added the configuration field to the CreateCollection model + # This field is optional, for backwards compatibility with older versions + # we default to None. + configuration: Optional[Dict[str, Any]] = None metadata: Optional[CollectionMetadata] = None get_or_create: bool = False diff --git a/pyproject.toml b/pyproject.toml index ffc6184c716..0dd75083153 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ dependencies = [ 'build >= 1.0.3', 'pydantic >= 1.9', - 'chroma-hnswlib==0.7.3', + 'chroma-hnswlib==0.7.5', 'fastapi >= 0.95.2', 'uvicorn[standard] >= 0.18.3', 'numpy >= 1.22.5, < 2.0.0', diff --git a/requirements.txt b/requirements.txt index f4b98114b1c..faa7c4271dd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ bcrypt>=4.0.1 -chroma-hnswlib>=0.7.3 +chroma-hnswlib==0.7.5 fastapi>=0.95.2 graphlib_backport==1.0.3; python_version < '3.9' grpcio>=1.58.0