Skip to content

ChatPromptTemplate will automatically add Human: prefix before the prompt word, anyway to custom? #18962

Closed Answered by maximeperrindev
CharlinChen asked this question in Q&A
Discussion options

You must be logged in to vote

@CharlinChen It is because of internal ChatPromptTemplate default template. If you only want to pass your query to LLM, you want to use PromptTemplatefrom langchain_core.prompts.prompt

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@CharlinChen
Comment options

@jamesev15
Comment options

@Fabio-Monti-02
Comment options

Answer selected by CharlinChen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants