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/stepback-qa-prompting
Harrison Chase 9e0ae56287
various templates improvements (#12500)
8 months ago
..
stepback_qa_prompting Format Templates (#12396) 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

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.