DOC: Improve human input prompt in FewShotChatMessagePromptTemplate example (#29023)

Fixes #29010 

This PR updates the example for FewShotChatMessagePromptTemplate by
modifying the human input prompt to include a more descriptive and
user-friendly question format ('What is {input}?') instead of just
'{input}'. This change enhances clarity and usability in the
documentation example.

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
UV 2025-01-07 01:59:15 +05:30 committed by GitHub
parent 1f78d4faf4
commit b9db8e9921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,7 +282,7 @@ class FewShotChatMessagePromptTemplate(
]
example_prompt = ChatPromptTemplate.from_messages(
[('human', '{input}'), ('ai', '{output}')]
[('human', 'What is {input}?'), ('ai', '{output}')]
)
few_shot_prompt = FewShotChatMessagePromptTemplate(