Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下怎么自定义回答的输出模板? #546

Open
wukaikailive opened this issue Jul 12, 2024 · 1 comment
Open

请问下怎么自定义回答的输出模板? #546

wukaikailive opened this issue Jul 12, 2024 · 1 comment

Comments

@wukaikailive
Copy link

在使用知识库时,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
Copy link
Collaborator

satrong commented Jul 12, 2024

目前没有地方可以配置,只能改源码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants