Replies: 1 comment 2 replies
-
🤖 Hello, Thank you for providing a detailed description of your issue. The error message you're encountering suggests that the In your code, you have defined retriever_infos = [
{"name": "faktura", "description": "It's just an invoice in polish", "retriever": dbs["faktura"]},
{"name": "kaufland", "description": "It's about kaufland file", "retriever": dbs["kaufland"]},
# Add more retrievers as needed
] Each dictionary in the Based on the error message and the information you've provided, it seems like the Here's an example of how your retriever_infos = [
{
"name": "Retriever1",
"description": "Description for Retriever1",
"retriever": Retriever1() # Retriever1 is a subclass of BaseRetriever and implements _get_relevant_documents
},
{
"name": "Retriever2",
"description": "Description for Retriever2",
"retriever": Retriever2() # Retriever2 is a subclass of BaseRetriever and implements _get_relevant_documents
},
# More retrievers...
] Please ensure that the I hope this helps! Let me know if you have any other questions. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
I am encountering an issue with the RetrievalQA class in the LangChain library when attempting to use multiple retrievals from FAISS.
The codebase:
The error message indicates after running it:
Expected Behavior:
The RetrievalQA class should accept and handle multiple retrievers from FAISS vector database without raising any errors.
Additional Information:
• I have ensured that the retriever information is correctly formatted as a dictionary.
• The retrievers are created using the FAISS vector database with appropriate embeddings.
• I have reviewed the documentation and examples for the RetrievalQA class but couldn't find a solution specific to using multiple retrievals from FAISS.
Any guidance or assistance in resolving this issue and successfully utilizing multiple retrievals from FAISS would be highly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions