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.
48989e6a0c | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
prompt.json | 1 year ago |
README.md
Description of Conversation Prompt
Prompt designed to simulate having a conversation and allow for a conversational response to be returned.
Inputs
This is a description of the inputs that the prompt expects.
history
: History of the conversation up to that point.input
: New user input.
Usage
Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt
from langchain.chains import ConversationChain
llm = ...
prompt = load_prompt('lc://prompts/conversation/<file-name>')
chain = ConversationChain(llm=llm, prompt=prompt)