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
Bagatur 2424fff3f1
notebook fmt (#12498)
8 months ago
..
rewrite_retrieve_read notebook fmt (#12498) 8 months ago
tests Templates (#12294) 8 months ago
README.md Templates (#12294) 8 months ago
main.py Format Templates (#12396) 8 months ago
poetry.lock various templates improvements (#12500) 8 months ago
pyproject.toml various templates improvements (#12500) 8 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