You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/rewrite-retrieve-read
Erick Friis ebf998acb6
Templates (#12294)
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>
11 months ago
..
rewrite_retrieve_read Templates (#12294) 11 months ago
tests Templates (#12294) 11 months ago
README.md Templates (#12294) 11 months ago
main.py Templates (#12294) 11 months ago
poetry.lock Templates (#12294) 11 months ago
pyproject.toml Templates (#12294) 11 months ago

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