请问下怎么自定义回答的输出模板?
wukaikailive opened this issue · 1 comments
wukaikailive commented
在使用知识库时,chat_ollama会设置这个模板:
const SYSTEM_TEMPLATE = `Answer the user's question based on the context below.
Present your answer in a structured Markdown format.
If the context doesn't contain any relevant information to the question, don't make something up and just say "I don't know":
<context>
{context}
</context>
<chat_history>
{chatHistory}
</chat_history>
<question>
{question}
</question>
Answer:
`
因为输出内容有一些我想自定义,如何在不修改代码的情况下修改模板呢?
satrong commented
目前没有地方可以配置,只能改源码