Skip to content

Commit

Permalink
update to chroma 0.6.0 (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Jan 2, 2025
1 parent fed2743 commit b2ca800
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- name: Support longpaths
Expand Down
6 changes: 2 additions & 4 deletions integrations/chroma/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ name = "chroma-haystack"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = []
authors = [{ name = "John Doe", email = "[email protected]" }]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -24,8 +23,7 @@ classifiers = [
]
dependencies = [
"haystack-ai",
"chromadb>=0.5.17",
"typing_extensions>=4.8.0"
"chromadb>=0.6.0",
]

[project.urls]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _ensure_initialized(self):
if "hnsw:space" not in self._metadata:
self._metadata["hnsw:space"] = self._distance_function

if self._collection_name in [c.name for c in client.list_collections()]:
if self._collection_name in client.list_collections():
self._collection = client.get_collection(self._collection_name, embedding_function=self._embedding_func)

if self._metadata != self._collection.metadata:
Expand Down

0 comments on commit b2ca800

Please sign in to comment.