I am following LangChain's tutorial to create an example selector to automatically select similar examples given an input.
example_selector = SemanticSimilarityExampleSelector.from_examples(
# This is the list of examples available to select from.
examples,
# This is the embedding class used to produce embeddings which are used to measure semantic similarity.
OpenAIEmbeddings(),
# This is the VectorStore class that is used to store the embeddings and do a similarity search over.
Chroma,
# This is the number of examples to produce.
k=1
)
I passed my documents in examples
, however I realized some examples would trigger an OpenAI content filtering error thus I want to remove them from the vectorstore, I couldn't figure out how to do it.
I tried to recreate my example documents and example selector all over again but would love to learn if there's way to remove embeddings from the vectorstore.