-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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[minor]: Add id attribute to Document returned by search results #27366
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
libs/partners/chroma/pyproject.toml
Outdated
@@ -19,7 +19,8 @@ disallow_untyped_defs = true | |||
"Release Notes" = "https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-chroma%3D%3D0%22&expanded=true" | |||
|
|||
[tool.poetry.dependencies] | |||
python = ">=3.8.1,<4" | |||
python = ">=3.9,<4" | |||
langchain-standard-tests = {git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/standard-tests"} | |||
[[tool.poetry.dependencies.langchain-core]] | |||
version = ">=0.1.40,<0.4" |
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.
need to bump up compatibility
id on document field was only added more recently
id: Optional[str] = None
"""An optional identifier for the document.
Ideally this should be unique across the document collection and formatted
as a UUID, but this will not be enforced.
.. versionadded:: 0.2.11
"""
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.
Hey @eyurtsev, we just bumped up the version for langchain-core to 0.2.11
Head branch was pushed to by a user without write access
@eyurtsev Hey there, sorry for the ping. Seems like one of the workflows failed because of |
This looks like an issue importing Standard Tests, will try to fix it tonight |
Head branch was pushed to by a user without write access
Hey @eyurtsev , when I run the commands |
TODO: fix order issue for last 3 tests
7a7f490
to
95ea4df
Compare
Hi @eyurtsev, just an update on this PR, we have passed all the tests. Please review it when you have some time and let us know if there is anything else to be done. Thank you for your work! |
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.
@chaunguyenm I think it's solved now. I faced the same failure in one of my PR to the chroma
package but when they merged it the workflow passed.
Going to try and merge |
Hi, it seems the issue with the |
Description
We added the document id when documents are created in function
similarity_search_with_score
such that enable retrieve documents again from the vector store using the same id.Sample code:
Before change
After change
The PR is corresponding to this issue.
Test added:
test_vectorstores.py
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/