Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retriever: MultiQueryRetriever #177

Merged
merged 8 commits into from
Sep 6, 2023
Merged

Retriever: MultiQueryRetriever #177

merged 8 commits into from
Sep 6, 2023

Conversation

kreneskyp
Copy link
Owner

@kreneskyp kreneskyp commented Aug 21, 2023

Description

This PR adds MultiQueryRetriever for improved retrieval.

Described in detail by LangChain docs:
https://python.langchain.com/docs/modules/data_connection/retrievers/MultiQueryRetriever

image

Changes

  • Adds MultiQueryRetriever
  • BaseRetriever patched to support asyncio for all retrievers

How Tested

  • manual test of editor
  • manual test in chat

TODOs

  • Requires editor to support Connector with multiple source_type. E.g. source_type=['vectorstore', 'retriever']. Currently the RETRIEVER_TARGET only allows vectorstore. This is supported in the type, but the editor needs updates to is_valid_connection fixed in Chain editor node connections now support List[ChainNode] #182

@kreneskyp kreneskyp marked this pull request as ready for review September 6, 2023 02:01
@kreneskyp kreneskyp merged commit 19d0fd8 into master Sep 6, 2023
5 checks passed
@kreneskyp kreneskyp deleted the multi_query_retrieval branch September 6, 2023 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant