Skip to content

langchain[patch]: Allow async indexing code to work for vectorstores that only defined sync delete #30869

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

Merged
merged 3 commits into from
May 16, 2025

Conversation

shkarupa-alex
Copy link
Contributor

aindex function should check not only adelete method, but delete method too

PR title: "core: fix async indexing issue with adelete/delete checking"
PR message: Currently langchain.indexes.aindex checks if vector store has overrided adelete method. But due to adelete default implementation store can have just delete overrided to make adelete working.

`aindex` function should check not only `adelete` method, but `delete` method too
Copy link

vercel bot commented Apr 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview May 15, 2025 9:24pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. langchain Related to the langchain package 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Apr 16, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 16, 2025
@shkarupa-alex
Copy link
Contributor Author

Failed test doesn't apply to the modified code

@shkarupa-alex
Copy link
Contributor Author

shkarupa-alex commented May 15, 2025

Can someone check this PR please?

@eyurtsev eyurtsev self-assigned this May 15, 2025
@eyurtsev eyurtsev changed the title Fix async indexing issue langchain[patch]: Allow async indexing code to work for vectorstores that only defined sync delete May 15, 2025
@eyurtsev eyurtsev merged commit 671e4fd into langchain-ai:master May 16, 2025
57 checks passed
@eyurtsev
Copy link
Collaborator

Thank you @shkarupa-alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature langchain Related to the langchain package size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants