docs/concepts/prompt_templates/ #29157
Replies: 3 comments 3 replies
-
prompt_template = ChatPromptTemplate([ |
Beta Was this translation helpful? Give feedback.
-
prompt_template = ChatPromptTemplate.from_messages( |
Beta Was this translation helpful? Give feedback.
-
prompt_template = ChatPromptTemplate([ prompt=prompt_template.invoke({"Language":"Chinese", "msgs":[HumanMessage("I am fine, thank you.")]}) result = llm.invoke(prompt) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
docs/concepts/prompt_templates/
Prompt templates help to translate user input and parameters into instructions for a language model.
https://python.langchain.com/docs/concepts/prompt_templates/
Beta Was this translation helpful? Give feedback.
All reactions