Extend ExampleSelector add_example functionality with the Indexing API #18661
lmitlaender
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
The idea is to use the existing Indexing - Langchain API when adding examples to an existing example selector or something similar, to achieve deduplication and potentially clean up of examples added to the vector store.
Motivation
Even when only supporting "None" it would at least already make use of the deduplication feature of the Indexing API.
Extending it further to support the other cleanup Modes would be even better of course.
Currently there is, at least to my knowledge, no good way to make sure the examples you add to an example selector vector store collection aren't duplicated in the future directly integrated into LangChain. It is not good practice to keep recreating the collection completely when there isn't a need for it when something like the Indexing API does exist already.
Proposal (If applicable)
A simple way of integrating the Indexing API, at least for the None cleanup option, would be this:
Of course this isn't refined in any big way at all, but is at least something that could already make use of the Indexing API while also allowing to add multiple examples at a time to an already existing example selector.
Beta Was this translation helpful? Give feedback.
All reactions