修复搜索界面样式,更新README文档;
This commit is contained in:
parent
7d2042673e
commit
8b8ce06e25
|
@ -8,6 +8,8 @@ cv/
|
|||
layout_app.py
|
||||
api/flask_session
|
||||
|
||||
|
||||
|
||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||
Cargo.lock
|
||||
|
@ -41,3 +43,7 @@ nltk_data/
|
|||
|
||||
# Exclude hash-like temporary files like 9b5ad71b2ce5302211f9c61530b329a4922fc6a4
|
||||
*[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]*
|
||||
web/public/logo_secret.svg
|
||||
web/public/logo_old.svg
|
||||
web/public/logo.svg
|
||||
web/src/locales/zh.ts
|
||||
|
|
26
README.md
26
README.md
|
@ -12,6 +12,31 @@ Ragflow-Plus,该名字不是说比 Ragflow 项目牛的意思,而是对标 D
|
|||
### 一. 用户批量注册/批量加入团队
|
||||
隐藏了原本用户注册的功能,改为管理员通过后台批量注册,并加入管理员团队,可共享团队知识库及默认模型配置
|
||||
|
||||
使用方式:
|
||||
1. python环境安装依赖:
|
||||
|
||||
参考python版本:python == 3.10.16
|
||||
```python
|
||||
pip install mysql-connector-python
|
||||
pip install pycryptodomex
|
||||
pip install werkzeug
|
||||
```
|
||||
|
||||
2. 修改`python_sql\add.json`文件内容:
|
||||
|
||||
- student_id 为 待添加用户学号
|
||||
- tenant_id 为 共享知识库的队长id,需要连接数据库查看
|
||||
|
||||
3. 执行批量插入操作:
|
||||
|
||||
```python
|
||||
python python_sql/add_sql_final.py
|
||||
```
|
||||
|
||||
默认用户名为 `学号@xidian.cn`
|
||||
默认密码为 `学号`
|
||||
|
||||
|
||||
### 二. 优化对话显示
|
||||
微调了对话界面的样式,使其观感更为友好
|
||||
|
||||
|
@ -65,6 +90,7 @@ docker cp dist ragflow-server:/ragflow/web/
|
|||
|
||||

|
||||
|
||||
|
||||
## License
|
||||
|
||||
版权说明:本项目在 Ragflow 项目基础上进行二开,需要遵守 Ragflow 的开源协议,如下
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Available options:
|
||||
# - `elasticsearch` (default)
|
||||
# - `infinity` (https://github.com/infiniflow/infinity)
|
||||
DOC_ENGINE=${DOC_ENGINE:-infinity}
|
||||
DOC_ENGINE=${DOC_ENGINE:-elasticsearch}
|
||||
|
||||
# ------------------------------
|
||||
# docker env var for specifying vector db type at startup
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
from openai import OpenAI
|
||||
|
||||
model = "deepseek-r1:1.5b"
|
||||
client = OpenAI(api_key="ragflow-FiNzM5YTEyMDk0MjExZjA5OTg4MDI0Mm", base_url=f"http://localhost/api/v1/chats_openai/ec69b3f4fbeb11ef862c0242ac120002")
|
||||
|
||||
completion = client.chat.completions.create(
|
||||
model=model,
|
||||
messages=[
|
||||
{"role": "system", "content": "你是一个乐于助人的助手"},
|
||||
{"role": "user", "content": "你是谁?"},
|
||||
],
|
||||
stream=False
|
||||
)
|
||||
|
||||
stream = False
|
||||
if stream:
|
||||
for chunk in completion:
|
||||
print(chunk)
|
||||
else:
|
||||
print(completion.choices[0].message.content)
|
|
@ -7,3 +7,7 @@
|
|||
/src/.umi-test
|
||||
/dist
|
||||
.swc
|
||||
/public/logo_secret.svg
|
||||
/public/logo_old.svg
|
||||
/public/logo.svg
|
||||
/src/locales/zh.ts
|
||||
|
|
|
@ -52,8 +52,10 @@
|
|||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.0.4",
|
||||
"dayjs": "^1.11.10",
|
||||
"docx": "^9.3.0",
|
||||
"dompurify": "^3.1.6",
|
||||
"eventsource-parser": "^1.1.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"human-id": "^4.1.1",
|
||||
"i18next": "^23.7.16",
|
||||
"i18next-browser-languagedetector": "^8.0.0",
|
||||
|
@ -102,6 +104,7 @@
|
|||
"@testing-library/jest-dom": "^6.4.5",
|
||||
"@testing-library/react": "^15.0.7",
|
||||
"@types/dompurify": "^3.0.5",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/lodash": "^4.14.202",
|
||||
"@types/react": "^18.0.33",
|
||||
|
@ -5746,6 +5749,13 @@
|
|||
"@types/estree": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/file-saver": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmmirror.com/@types/file-saver/-/file-saver-2.0.7.tgz",
|
||||
"integrity": "sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/geojson": {
|
||||
"version": "7946.0.16",
|
||||
"resolved": "https://registry.npmmirror.com/@types/geojson/-/geojson-7946.0.16.tgz",
|
||||
|
@ -11984,6 +11994,41 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/docx": {
|
||||
"version": "9.3.0",
|
||||
"resolved": "https://registry.npmmirror.com/docx/-/docx-9.3.0.tgz",
|
||||
"integrity": "sha512-IQwbSLBEMKNJmP9CDqSu3vJDhJps6tv/DlxsxuvfTclapd0JPCz1IFJTU//WdTjUenPMFaUD2Kg1nkQb/BWPIg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/node": "^22.7.5",
|
||||
"hash.js": "^1.1.7",
|
||||
"jszip": "^3.10.1",
|
||||
"nanoid": "^5.1.3",
|
||||
"xml": "^1.0.1",
|
||||
"xml-js": "^1.6.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/docx/node_modules/nanoid": {
|
||||
"version": "5.1.5",
|
||||
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-5.1.5.tgz",
|
||||
"integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ai"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"nanoid": "bin/nanoid.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18 || >=20"
|
||||
}
|
||||
},
|
||||
"node_modules/dom-accessibility-api": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmmirror.com/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",
|
||||
|
@ -13863,6 +13908,12 @@
|
|||
"node": "^10.12.0 || >=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/file-saver": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmmirror.com/file-saver/-/file-saver-2.0.5.tgz",
|
||||
"integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/file-selector": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmmirror.com/file-selector/-/file-selector-2.1.2.tgz",
|
||||
|
@ -26425,8 +26476,7 @@
|
|||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmmirror.com/sax/-/sax-1.4.1.tgz",
|
||||
"integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
|
||||
"license": "ISC",
|
||||
"optional": true
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/saxes": {
|
||||
"version": "6.0.0",
|
||||
|
@ -30739,6 +30789,24 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/xml": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/xml/-/xml-1.0.1.tgz",
|
||||
"integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/xml-js": {
|
||||
"version": "1.6.11",
|
||||
"resolved": "https://registry.npmmirror.com/xml-js/-/xml-js-1.6.11.tgz",
|
||||
"integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"sax": "^1.2.4"
|
||||
},
|
||||
"bin": {
|
||||
"xml-js": "bin/cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/xml-name-validator": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz",
|
||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 30 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 30 KiB |
|
@ -56,7 +56,7 @@ export default {
|
|||
nicknamePlaceholder: '请输入名称',
|
||||
register: '创建账户',
|
||||
continue: '继续',
|
||||
title: 'Ragflow-Plus大模型平台',
|
||||
title: '西电711大模型平台',
|
||||
description:
|
||||
'免费注册以探索顶级 RAG 技术。 创建知识库和人工智能来增强您的业务',
|
||||
review: '来自 500 多条评论',
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
|
||||
.input() {
|
||||
:global(.ant-input-affix-wrapper) {
|
||||
padding: 4px 12px;
|
||||
padding: 0px 12px;
|
||||
border-start-start-radius: 30px !important;
|
||||
border-end-start-radius: 30px !important;
|
||||
}
|
||||
|
@ -116,7 +116,7 @@
|
|||
height: 40px;
|
||||
}
|
||||
button {
|
||||
height: 50px !important;
|
||||
height: 40px !important;
|
||||
border-start-end-radius: 30px !important;
|
||||
border-end-end-radius: 30px !important;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
3196
web/yarn.lock
3196
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue