-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
chroma: fix persistence if client_settings is passed in #25199
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. Some questions + comments on the test:
-
Can we use tempfile or similar so that we are not modifying the actual filesystem on the machine running the tests?
-
Properly set-up and tear-down the tests (so that, for example, the tear down code runs even if there is an error during test execution). See relevant pytest docs here. You should be able to make a simple fixture like this:
@pytest.fixture
def setup_and_teardown():
# Logic before test goes here
yield
# Logic after test goes here
@da-vin-ci are you interested in iterating on this? |
@ccurme Sorry about the delay. I have updated to use temp directory. I felt fixtures might be overkill in this case. |
@ccurme Not sure how to proceed right now. The lint on the tests will not pass due to the code I put in to release the ChromaDb files after the persistence test. I will have to check if ChromaDb has been updated to properly release the files, if not we will have to use the code I committed. The only other option is to ignore the temp directory not being cleaned up and the host worrying about that at some later point. |
I think in this case the typing on the vector store was just not specific enough for the linter. Added some asserts to help it. |
Thank you! I learnt something new today. |
…ent path given.
Thank you for contributing to LangChain!
PR title: "package: description"
PR message: Delete this entire checklist and replace with
Add tests and docs: If you're adding a new integration, please include
docs/docs/integrations
directory.Lint and test: Run
make format
,make lint
andmake test
from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/Additional guidelines:
If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.