mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
ebf998acb6
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> Co-authored-by: Lance Martin <lance@langchain.dev> Co-authored-by: Jacob Lee <jacoblee93@gmail.com> |
||
---|---|---|
.. | ||
rewrite_retrieve_read | ||
tests | ||
main.py | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
Rewrite-Retrieve-Read
Rewrite-Retrieve-Read is a method proposed in the paper Query Rewriting for Retrieval-Augmented Large Language Models
Because the original query can not be always optimal to retrieve for the LLM, especially in the real world... we first prompt an LLM to rewrite the queries, then conduct retrieval-augmented reading
We show how you can easily do that with LangChain Expression Language