1884 Commits

Author SHA1 Message Date
panhong
e5565ee42b
Merge pull request #4130 from wangzongming/dev-frontend
知识库更改:接口对接、部分UI调整
2024-06-06 15:43:38 +08:00
wangzongming
32600650d3 知识库接口对接:知识库所有接口对接代码编写完毕。 2024-06-04 11:09:31 +08:00
wangzongming
7e5a093641 知识库更改:知识库文档上传、删除、重构向量库、下载文档、按钮增加小图标 2024-06-02 19:02:59 +08:00
panhong
c2bb287263
Merge pull request #4117 from wangzongming/dev-frontend
知识库:列表、新增、删除接口对接
2024-06-02 16:53:04 +08:00
wangzongming
54dfef4796 知识库新增、删除接口对接 2024-05-31 22:40:34 +08:00
panhong
85cda2d4c7
Merge pull request #3979 from vloum/feat/api-models
[add]添加获取模型接口
2024-05-10 15:21:27 +08:00
VLOU
e2f14482cb [add]添加获取模型接口 2024-05-10 00:46:24 +08:00
panhong
7061cb6297
Merge pull request #3743 from vloum/feat/add-lobeapi
lobe 添加ChatChat-api 和 models
2024-04-14 18:53:17 +08:00
VLOU
dac256f4f9 完善 models 2024-04-14 18:33:51 +08:00
VLOU
44eaf62e6c [update]补充chatchat model 2024-04-14 18:33:40 +08:00
VLOU
6f3a07ee61 [add]添加chatchat设置 2024-04-14 18:33:31 +08:00
VLOU
ea68e058cd [update]change name 2024-04-14 18:33:16 +08:00
VLOU
ed9ecebffc 添加knowledge会话接口 2024-04-14 18:32:51 +08:00
panhong
c6b92bc4d0
Merge pull request #3741 from cca313/feature/frontend-knowledgebase
Feature/frontend knowledgebase UI
2024-04-14 17:28:49 +08:00
cca313
6bd3d20996 代码&交互整理 2024-04-12 21:52:50 +08:00
cca313
14dc3f1394 UI设计和界面完成 2024-04-10 17:54:54 +08:00
cca313
3d5d1a00fa add knowledge base list 2024-03-30 19:40:03 +08:00
cca313
7a32e8ba10 add knowledge base tab 2024-03-30 11:20:37 +08:00
liunux4odoo
51691ee008
update to pydantic v2 (#3486) 2024-03-22 20:39:25 +08:00
panhong
d63bf0bda5
添加 react 编写的新版 WEBUI (#3417)
* feat:提交前端代码

* feat:提交logo样式切换

* feat:替换avatar、部分位置icon、chatchat相关说明、git链接、Wiki链接、关于、设置、反馈与建议等功能,关闭lobehub自检更新功能

* fix:移除多余代码

---------

Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
2024-03-19 14:30:26 +08:00
liunux4odoo
16d9b60999 fix merge conflict: langchain Embeddings not imported in server.utils 2024-03-19 08:34:05 +08:00
Sumkor
4bdb69baf3
fix markdown header split (#1825) (#3324) 2024-03-15 07:17:53 +08:00
glide-the
9b5367a23b
Merge pull request #3310 from chatchat-space/revert-3304-dev
Revert "xinference的代码"
2024-03-13 20:17:02 +08:00
glide-the
301c7c3d8c
Revert "xinference的代码" 2024-03-13 20:16:42 +08:00
glide-the
08f6fa53b4
Merge pull request #3304 from khazic/dev
后端服务接入功能工具包
2024-03-13 20:00:49 +08:00
Leb
980f321bec
diiii
diii
2024-03-13 19:51:36 +08:00
Leb
9208627138
Create khazic 2024-03-13 19:49:02 +08:00
Leb
4939e736e1
Delete server/xinference directory 2024-03-13 16:56:53 +08:00
Leb
eec8d51a91
xinference的代码
先传 我后面来改
2024-03-13 16:37:37 +08:00
dignfei
7b2b24c0bc
使用多进程提高导入知识库的速度 (#3276) 2024-03-13 10:36:14 +08:00
liunux4odoo
6310095a00 make xinference model manager support xinference 0.9.x 2024-03-12 20:37:17 +08:00
liunux4odoo
08c155949b
make qwen agent work with langchain>=0.1 (#3228) 2024-03-07 19:14:33 +08:00
glide-the
87c912087c 修复glm3 agent被注释的agent会话文本结构解析代码
看起来输出的文本占位符如下,目前解析代码是有问题的
Thought <|assistant|> Action\r
```python
tool_call(action_input)
```<|observation|>
2024-03-07 13:56:07 +08:00
liunux4odoo
51301dfe6a 优化 ES 知识库
- 开发者
    - get_OpenAIClient 的 local_wrap 默认值改为 False,避免 API 服务未启动导致其它功能受阻(如Embeddings)
    - 修改 ES 知识库服务:
	- 检索策略改为 ApproxRetrievalStrategy
	- 设置 timeout 为 60, 避免文档过多导致 ConnecitonTimeout Error
    - 修改 LocalAIEmbeddings,使用多线程进行  embed_texts,效果不明显,瓶颈可能主要在提供 Embedding 的服务器上
2024-03-07 11:58:27 +08:00
liunux4odoo
c839a1791a update kb_config.py.example 2024-03-07 09:22:35 +08:00
liunux4odoo
1118922387 调整根目录结构,kb/logs/media/nltk_data 移动到专用数据目录(可配置,默认 data)。注意知识库文件要做相应移动 2024-03-07 09:17:11 +08:00
liunux4odoo
e06d56b8bc 重写 calculate 工具 2024-03-07 09:01:50 +08:00
liunux4odoo
1dc069fa9c model_config 中补充 oneapi 默认在线模型;/v1/models 接口支持 oneapi 平台,统一返回模型列表 2024-03-07 08:31:47 +08:00
liunux4odoo
82dfcd97e6 fix merge conflict 2024-03-06 14:02:30 +08:00
liunux4odoo
f0f31167e9 update xinference manager ui 2024-03-06 13:51:57 +08:00
liunux4odoo
49bc5b54a4 添加 xinference 本地模型和自定义模型配置 UI: streamlit run model_loaders/xinference_manager.py 2024-03-06 13:51:57 +08:00
xucailiang
76b796ea58 原因:windows下启动失败提示补充python-multipart包 (#3184)
改动:requirements添加python-multipart==0.0.9
版本:0.0.9  Requires: Python >=3.8

Co-authored-by: XuCai <liangxc@akulaku.com>
2024-03-06 13:51:57 +08:00
liunux4odoo
77c3fa65c2 移除 llama-index 依赖;修复 /v1/models 错误 2024-03-06 13:51:57 +08:00
liunux4odoo
d0846f88cc - pydantic 限定为 v1,并统一项目中所有 pydantic 导入路径,为以后升级 v2 做准备
- 重构 api.py:
    - 按模块划分为不同的 router
    - 添加 openai 兼容的转发接口,项目默认使用该接口以实现模型负载均衡
    - 添加 /tools 接口,可以获取/调用编写的 agent tools
    - 移除所有 EmbeddingFuncAdapter,统一改用 get_Embeddings
    - 待办:
        - /chat/chat 接口改为 openai 兼容
        - 添加 /chat/kb_chat 接口,openai 兼容
        - 改变 ntlk/knowledge_base/logs 等数据目录位置
2024-03-06 13:51:34 +08:00
liunux4odoo
65466007ae make torch & transformers optional
import pydantic Model & Field from langchain.pydantic_v1 instead of pydantic.v1
2024-03-06 13:50:06 +08:00
liunux4odoo
73eb5e2e32 move document_loaders & text_splitter under server 2024-03-06 13:49:39 +08:00
liunux4odoo
5d422ca9a1 修改模型配置方式,所有模型以 openai 兼容框架的形式接入,chatchat 自身不再加载模型。
改变 Embeddings 模型改为使用框架 API,不再手动加载,删除自定义 Embeddings Keyword 代码
修改依赖文件,移除 torch transformers 等重依赖
暂时移出对 loom 的集成

后续:
1、优化目录结构
2、检查合并中有无被覆盖的 0.2.10 内容
2024-03-06 13:49:38 +08:00
glide-the
988a0e6ad2 Update model_config.py.example 2024-03-06 13:47:59 +08:00
glide-the
d6620eb628 知识库在线api接入点配置在线api接入点配置更新逻辑 2024-03-06 13:47:58 +08:00
glide-the
54ffdcab8b 本地知识库搜索字段修改 2024-03-06 13:47:56 +08:00