Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RELEASE] Release 0.5.4. Pin hnswlib upgrade. Configuration b/w compat. #2496

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 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
Loading