langchain/docs/extras/modules
Lance Martin 3f9900a864
Create MultiQueryRetriever (#6833)
Distance-based vector database retrieval embeds (represents) queries in
high-dimensional space and finds similar embedded documents based on
"distance". But, retrieval may produce difference results with subtle
changes in query wording or if the embeddings do not capture the
semantics of the data well. Prompt engineering / tuning is sometimes
done to manually address these problems, but can be tedious.

The `MultiQueryRetriever` automates the process of prompt tuning by
using an LLM to generate multiple queries from different perspectives
for a given user input query. For each query, it retrieves a set of
relevant documents and takes the unique union across all queries to get
a larger set of potentially relevant documents. By generating multiple
perspectives on the same question, the `MultiQueryRetriever` might be
able to overcome some of the limitations of the distance-based retrieval
and get a richer set of results.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-06-27 22:59:40 -07:00
..
agents Zapier update oauth support (#6780) 2023-06-27 11:46:32 -07:00
callbacks Initial Streamlit callback integration doc (md) (#6788) 2023-06-27 11:43:49 -07:00
chains openapi -> openai nit (#6667) 2023-06-23 15:09:02 -07:00
data_connection Create MultiQueryRetriever (#6833) 2023-06-27 22:59:40 -07:00
memory docs/fix links (#6498) 2023-06-20 14:06:50 -07:00
model_io Amazon API Gateway hosted LLM (#6673) 2023-06-23 21:27:25 -07:00
paul_graham_essay.txt Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
state_of_the_union.txt Doc refactor (#6300) 2023-06-16 11:52:56 -07:00