General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
LangChain Hub prompt for Conversation
Sign in to like and favorite skills
Prompt designed to simulate having a conversation and allow for a conversational response to be returned.
This is a description of the inputs that the prompt expects.
history: History of the conversation up to that point.input: New user input.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)