langchain/templates/rewrite-retrieve-read
2023-10-29 15:50:09 -07:00
..
rewrite_retrieve_read notebook fmt (#12498) 2023-10-29 15:50:09 -07:00
tests Templates (#12294) 2023-10-25 18:47:42 -07:00
main.py Format Templates (#12396) 2023-10-26 19:44:30 -07:00
poetry.lock various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
pyproject.toml various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
README.md Templates (#12294) 2023-10-25 18:47:42 -07:00

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