Closed MrCsabaToth closed 9 months ago
https://api.python.langchain.com/en/latest/_modules/langchain/retrievers/multi_query.html#MultiQueryRetriever looks to be a pretty thin wrapper. I have to think about if it'd bring any reasonable improvement (in code complexity or other ways)
We can potentially prompt engineer the variation prompt though along the lines of https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/10-langchain-multi-query.ipynb
See https://www.youtube.com/watch?v=VFf8XJUIHnU https://python.langchain.com/docs/modules/data_connection/retrievers/MultiQueryRetriever https://github.com/langchain-ai/langchain/issues/9231