Spaces:
Runtime error
Runtime error
BraisedPork
commited on
Commit
·
5c1aa44
1
Parent(s):
bd1a2b6
[Docs] Update README (#237)
Browse files* update
* update demo urls
* update
- README.md +16 -1
- README_zh-CN.md +11 -2
- frontend/React/README.md +2 -8
- frontend/React/README_zh-CN.md +3 -3
- requirements.txt +0 -1
README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
<img src="assets/logo.svg" style="width: 50%; height: auto;">
|
6 |
|
7 |
-
[
|
8 |
|
9 |
English | [简体中文](README_zh-CN.md)
|
10 |
|
@@ -15,6 +15,13 @@ English | [简体中文](README_zh-CN.md)
|
|
15 |
|
16 |
## ✨ MindSearch: Mimicking Human Minds Elicits Deep AI Searcher
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
## ⚽️ Build Your Own MindSearch
|
19 |
|
20 |
### Step1: Dependencies Installation
|
@@ -63,6 +70,14 @@ Providing following frontend interfaces,
|
|
63 |
|
64 |
- React
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
```bash
|
67 |
# Install Node.js and npm
|
68 |
# for Ubuntu
|
|
|
4 |
|
5 |
<img src="assets/logo.svg" style="width: 50%; height: auto;">
|
6 |
|
7 |
+
[📃 Paper](https://arxiv.org/abs/2407.20183) | [💻 Demo](https://internlm-chat.intern-ai.org.cn/)
|
8 |
|
9 |
English | [简体中文](README_zh-CN.md)
|
10 |
|
|
|
15 |
|
16 |
## ✨ MindSearch: Mimicking Human Minds Elicits Deep AI Searcher
|
17 |
|
18 |
+
## 📅 Changelog
|
19 |
+
|
20 |
+
- 2024/11/05: 🥳 MindSearch is now deployed on Puyu! 👉 [Try it](https://internlm-chat.intern-ai.org.cn/) 👈
|
21 |
+
- Refactored the agent module based on [Lagent v0.5](https://github.com/InternLM/lagent) for better performance in concurrency.
|
22 |
+
- Improved the UI to embody the simultaneous multi-query search.
|
23 |
+
|
24 |
+
|
25 |
## ⚽️ Build Your Own MindSearch
|
26 |
|
27 |
### Step1: Dependencies Installation
|
|
|
70 |
|
71 |
- React
|
72 |
|
73 |
+
First configurate the backend URL for Vite proxy.
|
74 |
+
|
75 |
+
```bash
|
76 |
+
HOST="127.0.0.1" # modify as you need
|
77 |
+
PORT=8002
|
78 |
+
sed -i -r "s/target:\s*\"\"/target: \"${HOST}:${PORT}\"/" frontend/React/vite.config.ts
|
79 |
+
```
|
80 |
+
|
81 |
```bash
|
82 |
# Install Node.js and npm
|
83 |
# for Ubuntu
|
README_zh-CN.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
<img src="assets/logo.svg" style="width: 50%; height: auto;">
|
6 |
|
7 |
-
[
|
8 |
|
9 |
[English](README.md) | 简体中文
|
10 |
|
@@ -64,8 +64,9 @@ python -m mindsearch.app --lang en --model_format internlm_server --search_engin
|
|
64 |
- `BingSearch` 为 Bing 搜索引擎。
|
65 |
- `BraveSearch` 为 Brave 搜索引擎。
|
66 |
- `GoogleSearch` 为 Google Serper 搜索引擎。
|
|
|
67 |
|
68 |
-
|
69 |
|
70 |
### 步骤3: 启动 MindSearch 前端
|
71 |
|
@@ -73,6 +74,14 @@ python -m mindsearch.app --lang en --model_format internlm_server --search_engin
|
|
73 |
|
74 |
- React
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
```bash
|
77 |
# 安装 Node.js 和 npm
|
78 |
# 对于 Ubuntu
|
|
|
4 |
|
5 |
<img src="assets/logo.svg" style="width: 50%; height: auto;">
|
6 |
|
7 |
+
[📃 Paper](https://arxiv.org/abs/2407.20183) | [💻 浦语入口](https://internlm-chat.intern-ai.org.cn/)
|
8 |
|
9 |
[English](README.md) | 简体中文
|
10 |
|
|
|
64 |
- `BingSearch` 为 Bing 搜索引擎。
|
65 |
- `BraveSearch` 为 Brave 搜索引擎。
|
66 |
- `GoogleSearch` 为 Google Serper 搜索引擎。
|
67 |
+
- `TencentSearch` 为 Tencent 搜索引擎。
|
68 |
|
69 |
+
请将 DuckDuckGo 和 Tencent 以外的网页搜索引擎 API 密钥设置为 `WEB_SEARCH_API_KEY` 环境变量。如果使用 DuckDuckGo,则无需设置;如果使用 Tencent,请设置 `TENCENT_SEARCH_SECRET_ID` 和 `TENCENT_SEARCH_SECRET_KEY`。
|
70 |
|
71 |
### 步骤3: 启动 MindSearch 前端
|
72 |
|
|
|
74 |
|
75 |
- React
|
76 |
|
77 |
+
首先配置Vite的API代理,指定实际后端URL
|
78 |
+
|
79 |
+
```bash
|
80 |
+
HOST="127.0.0.1"
|
81 |
+
PORT=8002
|
82 |
+
sed -i -r "s/target:\s*\"\"/target: \"${HOST}:${PORT}\"/" frontend/React/vite.config.ts
|
83 |
+
```
|
84 |
+
|
85 |
```bash
|
86 |
# 安装 Node.js 和 npm
|
87 |
# 对于 Ubuntu
|
frontend/React/README.md
CHANGED
@@ -168,21 +168,15 @@ pay attention to the real port in your terminal.maybe it won`t be 8080.
|
|
168 |
|
169 |
# Config
|
170 |
## How to modify the request URL
|
171 |
-
- Open the file `/src/config/cgi.ts`
|
172 |
-
- Modify the value of `GET_SSE_DATA`, be like:
|
173 |
-
```
|
174 |
-
export const GET_SSE_DATA = `http://${ip}:${port}/${path}`
|
175 |
-
```
|
176 |
|
177 |
-
|
178 |
-
- Open the file `vite.config.ts`, modify server like:
|
179 |
|
180 |
```
|
181 |
server: {
|
182 |
port: 8080,
|
183 |
proxy: {
|
184 |
"/solve": {
|
185 |
-
target: "
|
186 |
changeOrigin: true,
|
187 |
}
|
188 |
}
|
|
|
168 |
|
169 |
# Config
|
170 |
## How to modify the request URL
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
+
- Open the file `vite.config.ts`, modify the target like:
|
|
|
173 |
|
174 |
```
|
175 |
server: {
|
176 |
port: 8080,
|
177 |
proxy: {
|
178 |
"/solve": {
|
179 |
+
target: "{HOST}:{PORT}",
|
180 |
changeOrigin: true,
|
181 |
}
|
182 |
}
|
frontend/React/README_zh-CN.md
CHANGED
@@ -116,15 +116,15 @@ Homebrew会自动下载Node.js的安装包,并处理相关的依赖项和安
|
|
116 |
|
117 |
## 配置
|
118 |
### 接口请求配置
|
119 |
-
|
120 |
-
-
|
121 |
|
122 |
```
|
123 |
server: {
|
124 |
port: 8080,
|
125 |
proxy: {
|
126 |
"/solve": {
|
127 |
-
target: "
|
128 |
changeOrigin: true,
|
129 |
}
|
130 |
}
|
|
|
116 |
|
117 |
## 配置
|
118 |
### 接口请求配置
|
119 |
+
|
120 |
+
- 在vite.config.ts中配置proxy,示例如下:
|
121 |
|
122 |
```
|
123 |
server: {
|
124 |
port: 8080,
|
125 |
proxy: {
|
126 |
"/solve": {
|
127 |
+
target: "{HOST}:{PORT}",
|
128 |
changeOrigin: true,
|
129 |
}
|
130 |
}
|
requirements.txt
CHANGED
@@ -2,7 +2,6 @@ duckduckgo_search==5.3.1b1
|
|
2 |
einops
|
3 |
fastapi
|
4 |
gradio==5.3.0
|
5 |
-
gradio
|
6 |
janus
|
7 |
lagent==0.5.0rc1
|
8 |
lmdeploy==0.5.3
|
|
|
2 |
einops
|
3 |
fastapi
|
4 |
gradio==5.3.0
|
|
|
5 |
janus
|
6 |
lagent==0.5.0rc1
|
7 |
lmdeploy==0.5.3
|