Skip to content

Commit

Permalink
[RELEASE] Release 0.5.4. Pin hnswlib upgrade. Configuration b/w compa…
Browse files Browse the repository at this point in the history
…t. (#2496)

- Release 0.5.4
- Pin hnswlib upgrades
- Configuration b/w compat
  • Loading branch information
HammadB authored Jul 10, 2024
1 parent 27f7d1a commit 9c91fe4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chromadb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

__settings = Settings()

__version__ = "0.5.3"
__version__ = "0.5.4"


# Workaround to deal with Colab's old sqlite3 version
Expand Down
1 change: 0 additions & 1 deletion chromadb/server/fastapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion chromadb/server/fastapi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9c91fe4

Please sign in to comment.