chroma-core / chroma

the AI-native open-source embedding database

Home Page:https://www.trychroma.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: HYPOTHESIS does not include in DockerImage

cin-logan opened this issue · comments

What happened?

Hi, I have implemented Basic RBAC on Chroma following this documentation https://docs.trychroma.com/deployment/auth.

However, when I deployed, I received an error stating No module named 'hypothesis' when exporting the environment variable CHROMA_SERVER_AUTHZ_PROVIDER="chromadb.auth.simple_rbac_authz.SimpleRBACAuthorizationProvider". I checked the Docker image and Dockerfile and found that they don't include the Hypothesis library. It's only present in requirements_dev.txt.

Versions

Chroma0.5.0, Python3.11

Relevant log output

No response

@cin-logan, thanks for reporting this. You are right that the RBAC Provider does indeed include some test artifacts:

from hypothesis import Phase, settings
settings.register_profile("ci", phases=[Phase.generate, Phase.target])

I believe these were added to fix slow test executions. We'll look into how to remove the dependency.

This is now fixed in 0.5.3. Thanks for reporting!