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.
![]() |
1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
basic.yaml | 1 year ago |
README.md
Description of QA Stuff Prompts
Prompts to use when doing question answering with chains using the stuff
method.
Inputs
This is a description of the inputs that the prompt expects.
context
: Context to answer the question, is usually a concatenation of all relevant documents.question
: Question to be answered.
Usage
Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt
from langchain.chains.question_answering import load_qa_chain
llm = ...
prompt = load_prompt('lc://prompts/qa/stuff/<file-name>')
chain = load_qa_chain(llm, chain_type="stuff", prompt=prompt)