Langchain-Chatchat/configs
liunux4odoo a65bc4a63c
添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504)
1、 默认包含2个模板,分别用于LLM对话,知识库和搜索引擎对话
2、 server/utils.py提供函数get_prompt_template,获取指定的prompt模板内容(支持热加载)
3、 api.py中chat/knowledge_base_chat/search_engine_chat接口支持prompt_name参数
2023-09-17 13:27:11 +08:00
..
__init__.py 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
basic_config.py.example 优化configs (#1474) 2023-09-15 17:52:22 +08:00
kb_config.py.exmaple 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
model_config.py.example feat: support volc fangzhou 2023-09-16 22:21:16 +08:00
prompt_config.py.example 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
server_config.py.example 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00