13 Commits

Author SHA1 Message Date
imClumsyPanda
00869bd839 add BaseRetrieverService, VectorstoreRetrieverService, EnsembleRetrieverService 2024-03-30 00:17:48 +08:00
glide-the
6e9e31a32c 格式化和代码检查说明 2024-03-29 18:26:50 +08:00
liunux4odoo
27f0f512a3
添加 openai 兼容的 files 接口 (#3573) 2024-03-29 18:07:07 +08:00
liunux4odoo
a1429a350a
修复:search_local_knowledge_base 工具返回值错误;/tools 路由错误;webui 中“正在思考”一直显示 (#3571) 2024-03-29 14:30:16 +08:00
liunux4odoo
42aa900566
优化工具定义;添加 openai 兼容的统一 chat 接口 (#3570)
- 修复:
    - Qwen Agent 的 OutputParser 不再抛出异常,遇到非 COT 文本直接返回
    - CallbackHandler 正确处理工具调用信息

- 重写 tool 定义方式:
    - 添加 regist_tool 简化 tool 定义:
        - 可以指定一个用户友好的名称
        - 自动将函数的 __doc__ 作为 tool.description
	- 支持用 Field 定义参数,不再需要额外定义 ModelSchema
        - 添加 BaseToolOutput 封装 tool	返回结果,以便同时获取原始值、给LLM的字符串值
        - 支持工具热加载(有待测试)

- 增加 openai 兼容的统一 chat 接口,通过 tools/tool_choice/extra_body 不同参数组合支持:
    - Agent 对话
    - 指定工具调用(如知识库RAG)
    - LLM 对话

- 根据后端功能更新 webui
2024-03-29 11:55:32 +08:00
glide-the
5e70aff522 格式化 2024-03-29 10:23:28 +08:00
liunux4odoo
9818bd2a88
- 重写 tool 部分: (#3553)
- 简化 tool 的定义方式
    - 所有 tool 和 tool_config 支持热加载
    - 修复:json_schema_extra warning
2024-03-28 13:08:51 +08:00
liunux4odoo
26b141a06e update .gitignore; fix model version error in api_schemas 2024-03-27 10:39:45 +08:00
glide-the
9260039672 移动项目模块 2024-03-27 10:12:28 +08:00
liunux4odoo
24ffa2f362 fix bugs; make poetry using tsinghua mirror of pypi 2024-03-26 12:27:02 +08:00
liunux4odoo
b9c08cbefd 对python的要求降级到py38 2024-03-26 10:37:36 +08:00
liunux4odoo
fad54822d0 Merge branch 'panda-dev' into temp 2024-03-26 09:48:40 +08:00
glide-the
6f5f22a17a 使用poetry管理项目 2024-03-25 15:31:49 +08:00