Skip to content

fix(modules): update chroma version #826

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

Merged
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
8 changes: 4 additions & 4 deletions modules/chroma/testcontainers/chroma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class ChromaContainer(DockerContainer):

def __init__(
self,
image: str = "chromadb/chroma:latest",
image: str = "chromadb/chroma:1.0.0",
port: int = 8000,
**kwargs,
) -> None:
"""
Args:
image: Docker image to use for the MinIO container.
image: Docker image to use for the ChromaDB container.
port: Port to expose on the container.
access_key: Access key for client connections.
secret_key: Secret key for client connections.
Expand All @@ -55,7 +55,7 @@ def get_config(self) -> dict:
including the endpoint.
Returns:
dict: {`endpoint`: str}
dict: {`endpoint`: str, `host`: str, `port`: int}
"""
host_ip = self.get_container_host_ip()
exposed_port = self.get_exposed_port(self.port)
Expand All @@ -69,7 +69,7 @@ def get_config(self) -> dict:
def _healthcheck(self) -> None:
"""This is an internal method used to check if the Chroma container
is healthy and ready to receive requests."""
url = f"http://{self.get_config()['endpoint']}/api/v1/heartbeat"
url = f"http://{self.get_config()['endpoint']}/api/v2/heartbeat"
response: Response = get(url)
response.raise_for_status()

Expand Down
2 changes: 1 addition & 1 deletion modules/chroma/tests/test_chroma.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def test_docker_run_chroma():
with ChromaContainer(image="chromadb/chroma:0.4.24") as chroma:
with ChromaContainer(image="chromadb/chroma:1.0.0") as chroma:
client = chromadb.HttpClient(host=chroma.get_config()["host"], port=chroma.get_config()["port"])
col = client.get_or_create_collection("test")
assert col.name == "test"
Loading
Loading