Document Retriever vs Examples Selector #27789
Unanswered
arademaker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use retriever in a chain to compose the final prompt with examples.
System Info
I want to implement a prompt with few examples and I am almost following the tutorial
https://python.langchain.com/docs/how_to/few_shot_examples_chat/#dynamic-few-shot-prompting
But how to replace the vectordb with a Document retriever in the chain? I am specially interested in trying the TFIDF.
So maybe the more general question is what is the difference between the
https://python.langchain.com/api_reference/core/example_selectors/langchain_core.example_selectors.base.BaseExampleSelector.html#langchain_core.example_selectors.base.BaseExampleSelector
and
https://python.langchain.com/api_reference/core/retrievers/langchain_core.retrievers.BaseRetriever.html#langchain_core.retrievers.BaseRetriever
Beta Was this translation helpful? Give feedback.
All reactions