langchain/templates/rewrite-retrieve-read/README.md

8 lines
459 B
Markdown
Raw Normal View History

# Rewrite-Retrieve-Read
**Rewrite-Retrieve-Read** is a method proposed in the paper [Query Rewriting for Retrieval-Augmented Large Language Models](https://arxiv.org/pdf/2305.14283.pdf)
> 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