-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
indexes
refactoring
#18146
indexes
refactoring
#18146
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
"""Number of skipped documents because they were already up to date.""" | ||
|
||
|
||
def index( |
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.
index
should stay in langchain -- since partner packages may introduce a record manager implementation and we don't want partner packages to ever depend on langchain_community
NAMESPACE_UUID = uuid.UUID(int=1984) | ||
|
||
|
||
class RecordManager(ABC): |
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.
This should stay in langchain or end up in langchain core since partner packages will need to inherit for their own implementations.
Generally abstract interfaces should be in either langchain core or langchain, but not in langchain community
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.
@eyurtsev Yeah, exactly, that was implemented in the #17832 but @baskaryan opposed it. So...
looks like you and @baskaryan should decide what to do or not to do. I'm pausing now with this PR.
Close temporarily till the dependency rules are clear. |
Created this from referencing the refactor #20667 |
indexes
atifacts partially duplicted in thelangchain
and inlangchain_community
packages.Regarding #17832 and following @baskaryan recommendations,
indexes
is moved into thelangchain_community
.All ut-s in
langchain
work without changes.Missed ut-s from
langchain
were added into thelangchain_community
ut-s. Only ut-s that test the "all" symbol were not added, because "allin
langchain_community` is not used.