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> |
||
---|---|---|
.. | ||
stepback_qa_prompting | ||
tests | ||
main.py | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
Step-Back Prompting (Question-Answering)
One prompting technique called "Step-Back" prompting can improve performance on complex questions by first asking a "step back" question. This can be combined with regular question-answering applications by then doing retrieval on both the original and step-back question.
Read the paper here
See an excelent blog post on this by Cobus Greyling here
In this template we will replicate this technique. We modify the prompts used slightly to work better with chat models.