-
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
core[minor],langchain[patch]: Move base indexing interface and logic to core #20667
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored 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.
implementation good - some questions about tests
from langchain_core.pydantic_v1 import root_validator | ||
from langchain_core.vectorstores import VectorStore | ||
|
||
from langchain.indexes.base import NAMESPACE_UUID, RecordManager | ||
NAMESPACE_UUID = uuid.UUID(int=1984) |
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.
i know this is just a migration but a comment of what this is doing would be great
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.
might be worth keeping some form of the langchain
ones here just to confirm we don't break anything for existing users for now (maybe with a note at top to remove test file for 0.2)
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.
why are we removing these
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.
Good catch, I think I meant to remove some of the unit tests but not all of them (duplicated coverage with test_indexing in core). I can revert for now and just keep the duplicated code
…to core (#20667) This PR moves the interface and the logic to core. The following changes to namespaces: `indexes` -> `indexing` `indexes._api` -> `indexing.api` Testing code is intentionally duplicated for now since it's testing different implementations of the record manager (in-memory vs. SQL). Common logic will need to be pulled out into the test client. A follow up PR will move the SQL based implementation outside of LangChain.
This PR moves the interface and the logic to core.
The following changes to namespaces:
indexes
->indexing
indexes._api
->indexing.api
Testing code is intentionally duplicated for now since it's testing different
implementations of the record manager (in-memory vs. SQL).
Common logic will need to be pulled out into the test client.
A follow up PR will move the SQL based implementation outside of LangChain.