-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
in_memory always got True in chroma_datastore #401
Comments
zanghu
changed the title
in_memory always True in chroma_datastore
in_memory always got True in chroma_datastore
Dec 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your time!
In
chroma_datastore.py
, the os.getenv function returns the value of theCHROMA_IN_MEMORY
environment variable as a string. Currently, in theChromaDataStore.__init__
method (specifically, thein_memory
variable), it directly relies on this value for decision-making(e.g.:if in_memory: ...
). However, since any non-empty string is evaluated asTrue
in theif
statement, it results in the program attempting to use in_memory storage even when the CHROMA_IN_MEMORY environment variable is set to "false".The text was updated successfully, but these errors were encountered: