提取关键词时LLM输出的关键词跟随用户提问的语言,可以避免一些指定英文而偶发的一些LLM输出的JSON不规范导致JSON解析失败的问题

This commit is contained in:
Magic_yuan
2024-12-09 18:15:09 +08:00
parent ffa95e0461
commit 9724b59e19

View File

@@ -178,7 +178,6 @@ Add sections and commentary to the response as appropriate for the length and fo
PROMPTS["keywords_extraction"] = """---Role---
You are a helpful assistant tasked with identifying both high-level and low-level keywords in the user's query.
Use {language} as output language.
---Goal---