Skip to content

Commit 3a2c86d

Browse files
committed
docs: 更新多语言文档,新增知识图谱与MCP配置指南及目录结构
1 parent a910bae commit 3a2c86d

File tree

6 files changed

+92
-82
lines changed

6 files changed

+92
-82
lines changed

README.md

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,7 @@ make clean-db
256256

257257
http://localhost
258258

259-
On first access, it will automatically redirect to the initialization configuration page. After configuration is complete, it will automatically redirect to the knowledge base page. Please follow the page instructions to complete model configuration.
260-
261-
![Configuration Page](./docs/images/config.png)
259+
On your first visit, you will be automatically redirected to the registration/login page. After completing registration, please create a new knowledge base and finish the relevant settings on its configuration page.
262260

263261
## 📱 Interface Showcase
264262

@@ -278,17 +276,13 @@ On first access, it will automatically redirect to the initialization configurat
278276

279277
### Document Knowledge Graph
280278

281-
<table>
282-
<tr>
283-
<td><img src="./docs/images/graph2.png" alt="Knowledge Graph View 1"></td>
284-
<td><img src="./docs/images/graph1.png" alt="Knowledge Graph View 2"></td>
285-
</tr>
286-
</table>
287-
288279
WeKnora supports transforming documents into knowledge graphs, displaying the relationships between different sections of the documents. Once the knowledge graph feature is enabled, the system analyzes and constructs an internal semantic association network that not only helps users understand document content but also provides structured support for indexing and retrieval, enhancing the relevance and breadth of search results.
289280

290-
### MCP Server Integration Effects
291-
<img width="950" height="2063" alt="MCP Server Integration Demo" src="https://github.com/user-attachments/assets/09111ec8-0489-415c-969d-aa3835778e14" />
281+
For detailed configuration, please refer to the [Knowledge Graph Configuration Guide](./docs/KnowledgeGraph.md).
282+
283+
### MCP Server
284+
285+
Please refer to the [MCP Configuration Guide](./mcp-server/MCP_CONFIG.md) for the necessary setup.
292286

293287
## 📘 API Reference
294288

@@ -302,21 +296,17 @@ Detailed API documentation is available at: [API Docs](./docs/API.md)
302296

303297
```
304298
WeKnora/
299+
├── client/ # go client
305300
├── cmd/ # Main entry point
306-
├── internal/ # Core business logic
307301
├── config/ # Configuration files
308-
├── migrations/ # DB migration scripts
309-
├── scripts/ # Shell scripts
310-
├── services/ # Microservice logic
302+
├── docker/ # docker images files
303+
├── docreader/ # Document parsing app
304+
├── docs/ # Project documentation
311305
├── frontend/ # Frontend app
312-
└── docs/ # Project documentation
313-
```
314-
315-
### 🔧 Common Commands
316-
317-
```bash
318-
# Wipe all data from DB (use with caution)
319-
make clean-db
306+
├── internal/ # Core business logic
307+
├── mcp-server/ # MCP server
308+
├── migrations/ # DB migration scripts
309+
└── scripts/ # Shell scripts
320310
```
321311

322312
## 🤝 Contributing

README_CN.md

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,17 @@ WeKnora 作为[微信对话开放平台](https://chatbot.weixin.qq.com)的核心
194194
- **零代码部署**:只需上传知识,即可在微信生态中快速部署智能问答服务,实现"即问即答"的体验
195195
- **高效问题管理**:支持高频问题的独立分类管理,提供丰富的数据工具,确保回答精准可靠且易于维护
196196
- **微信生态覆盖**:通过微信对话开放平台,WeKnora 的智能问答能力可无缝集成到公众号、小程序等微信场景中,提升用户交互体验
197-
### 🔗MCP服务器访问已经部署好的WEKnora
197+
198+
### 🔗 MCP 服务器访问已经部署好的 WeKnora
199+
198200
#### 1️⃣克隆储存库
201+
199202
```
200203
git clone https://github.com/Tencent/WeKnora
201204
```
205+
202206
#### 2️⃣配置MCP服务器
207+
203208
> 推荐直接参考 [MCP配置说明](./mcp-server/MCP_CONFIG.md) 进行配置。
204209
205210
mcp客户端配置服务器
@@ -219,6 +224,7 @@ mcp客户端配置服务器
219224
}
220225
}
221226
```
227+
222228
使用stdio命令直接运行
223229
```
224230
pip install weknora-mcp-server
@@ -252,10 +258,7 @@ make clean-db
252258

253259
http://localhost
254260

255-
首次访问会自动跳转到初始化配置页面,配置完成后会自动跳转到知识库页面。请按照页面提示信息完成模型的配置。
256-
257-
![配置页面](./docs/images/config.png)
258-
261+
首次访问会自动跳转到注册登录页面,完成注册后,请创建一个新的知识库,并在该知识库的设置页面完成相关设置。
259262

260263
## 📱 功能展示
261264

@@ -275,17 +278,13 @@ http://localhost
275278

276279
### 文档知识图谱
277280

278-
<table>
279-
<tr>
280-
<td><img src="./docs/images/graph2.png" alt="知识图谱展示1"></td>
281-
<td><img src="./docs/images/graph1.png" alt="知识图谱展示2"></td>
282-
</tr>
283-
</table>
284-
285281
WeKnora 支持将文档转化为知识图谱,展示文档中不同段落之间的关联关系。开启知识图谱功能后,系统会分析并构建文档内部的语义关联网络,不仅帮助用户理解文档内容,还为索引和检索提供结构化支撑,提升检索结果的相关性和广度。
286-
### 配套MCP服务器调用效果
287-
<img width="950" height="2063" alt="118d078426f42f3d4983c13386085d7f" src="https://github.com/user-attachments/assets/09111ec8-0489-415c-969d-aa3835778e14" />
288282

283+
具体配置请参考 [知识图谱配置说明](./docs/KnowledgeGraph.md) 进行相关配置。
284+
285+
### 配套MCP服务器
286+
287+
请参考 [MCP配置说明](./mcp-server/MCP_CONFIG.md) 进行相关配置。
289288

290289
## 📘 文档
291290

@@ -299,21 +298,17 @@ WeKnora 支持将文档转化为知识图谱,展示文档中不同段落之间
299298

300299
```
301300
WeKnora/
301+
├── client/ # go客户端
302302
├── cmd/ # 应用入口
303-
├── internal/ # 核心业务逻辑
304303
├── config/ # 配置文件
305-
├── migrations/ # 数据库迁移脚本
306-
├── scripts/ # 启动与工具脚本
307-
├── services/ # 各子服务实现
304+
├── docker/ # docker 镜像文件
305+
├── docreader/ # 文档解析项目
306+
├── docs/ # 项目文档
308307
├── frontend/ # 前端项目
309-
└── docs/ # 项目文档
310-
```
311-
312-
### 🔧 常用命令
313-
314-
```bash
315-
# 清空数据库(慎用!)
316-
make clean-db
308+
├── internal/ # 核心业务逻辑
309+
├── mcp-server/ # MCP服务器
310+
├── migrations/ # 数据库迁移脚本
311+
└── scripts/ # 启动与工具脚本
317312
```
318313

319314
## 🤝 贡献指南

README_JA.md

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,15 @@ WeKnoraは[WeChat対話オープンプラットフォーム](https://chatbot.wei
195195
- **効率的な問題管理**:高頻度の問題の独立した分類管理をサポートし、豊富なデータツールを提供して、正確で信頼性が高く、メンテナンスが容易な回答を保証
196196
- **WeChatエコシステムカバレッジ**:WeChat対話オープンプラットフォームを通じて、WeKnoraのインテリジェントQ&A能力を公式アカウント、ミニプログラムなどのWeChatシナリオにシームレスに統合し、ユーザーインタラクション体験を向上
197197

198-
### 🔗MCPサーバーを使用してデプロイ済みのWeKnoraにアクセス
198+
### 🔗 MCP サーバーを使用してデプロイ済みの WeKnora にアクセス
199+
199200
#### 1️⃣リポジトリのクローン
200201
```
201202
git clone https://github.com/Tencent/WeKnora
202203
```
203-
#### 2️⃣MCPサーバーの設定
204+
205+
#### 2️⃣ MCPサーバーの設定
206+
204207
> 設定には直接 [MCP設定説明](./mcp-server/MCP_CONFIG.md) を参照することをお勧めします。
205208
206209
MCPクライアントでサーバーを設定
@@ -220,6 +223,7 @@ MCPクライアントでサーバーを設定
220223
}
221224
}
222225
```
226+
223227
stdioコマンドで直接実行
224228
```
225229
pip install weknora-mcp-server
@@ -253,10 +257,7 @@ make clean-db
253257

254258
http://localhost
255259

256-
初回アクセス時は自動的に初期設定ページにリダイレクトされ、設定完了後は自動的にナレッジベースページにリダイレクトされます。ページの指示に従ってモデルの設定を完了してください。
257-
258-
![設定ページ](./docs/images/config.png)
259-
260+
初回アクセス時は自動的に登録・ログインページに遷移します。登録完了後、新規にナレッジベースを作成し、その設定画面で必要な項目を構成してください。
260261

261262
## 📱 機能デモ
262263

@@ -276,17 +277,13 @@ http://localhost
276277

277278
### 文書ナレッジグラフ
278279

279-
<table>
280-
<tr>
281-
<td><img src="./docs/images/graph2.png" alt="ナレッジグラフ表示1"></td>
282-
<td><img src="./docs/images/graph1.png" alt="ナレッジグラフ表示2"></td>
283-
</tr>
284-
</table>
285-
286280
WeKnoraは文書をナレッジグラフに変換し、文書内の異なる段落間の関連関係を表示することをサポートします。ナレッジグラフ機能を有効にすると、システムは文書内部の意味関連ネットワークを分析・構築し、ユーザーが文書内容を理解するのを助けるだけでなく、インデックスと検索に構造化サポートを提供し、検索結果の関連性と幅を向上させます。
287281

288-
### 対応MCPサーバー呼び出し効果
289-
<img width="950" height="2063" alt="118d078426f42f3d4983c13386085d7f" src="https://github.com/user-attachments/assets/09111ec8-0489-415c-969d-aa3835778e14" />
282+
詳細な設定については、[ナレッジグラフ設定ガイド](./docs/KnowledgeGraph.md)をご参照ください。
283+
284+
### 対応するMCPサーバー
285+
286+
[MCP設定ガイド](./mcp-server/MCP_CONFIG.md) をご参照のうえ、必要な設定を行ってください。
290287

291288

292289
## 📘 ドキュメント
@@ -300,22 +297,18 @@ WeKnoraは文書をナレッジグラフに変換し、文書内の異なる段
300297
### 📁 プロジェクトディレクトリ構造
301298

302299
```
303-
WeKnora/
304-
├── cmd/ # アプリケーションエントリー
305-
├── internal/ # コアビジネスロジック
306-
├── config/ # 設定ファイル
307-
├── migrations/ # データベースマイグレーションスクリプト
308-
├── scripts/ # 起動とツールスクリプト
309-
├── services/ # 各サブサービスの実装
310-
├── frontend/ # フロントエンドプロジェクト
311-
└── docs/ # プロジェクトドキュメント
312-
```
313-
314-
### 🔧 よく使うコマンド
315-
316-
```bash
317-
# データベースをクリア(注意して使用!)
318-
make clean-db
300+
WeKnora/
301+
├── client/ # Goクライアント
302+
├── cmd/ # アプリケーションエントリ
303+
├── config/ # 設定ファイル
304+
├── docker/ # Dockerイメージファイル
305+
├── docreader/ # 文書解析プロジェクト
306+
├── docs/ # プロジェクトドキュメント
307+
├── frontend/ # フロントエンドプロジェクト
308+
├── internal/ # コアビジネスロジック
309+
├── mcp-server/ # MCPサーバー
310+
├── migrations/ # データベースマイグレーションスクリプト
311+
└── scripts/ # 起動およびツールスクリプト
319312
```
320313

321314
## 🤝 貢献ガイド

docs/KnowledgeGraph.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# WeKnora 知识图谱
2+
3+
## 快速开始
4+
5+
- .env 配置相关环境变量
6+
- 启用 Neo4j: `NEO4J_ENABLE=true`
7+
- Neo4j URI: `NEO4J_URI=bolt://neo4j:7687`
8+
- Neo4j 用户名: `NEO4J_USERNAME=neo4j`
9+
- Neo4j 密码: `NEO4J_PASSWORD=password`
10+
11+
- 启动 Neo4j
12+
```bash
13+
docker-compose --profile neo4j up -d
14+
```
15+
16+
- 在知识库设置页面启用实体和关系提取,并根据提示配置相关内容
17+
18+
## 生成图谱
19+
20+
上传任意文档后,系统会自动提取实体和关系,并生成对应的知识图谱。
21+
22+
![知识图片示例](./images/graph3.png)
23+
24+
## 查看图谱
25+
26+
登陆 `http://localhost:7474`,执行 `match (n) return (n)` 即可查看生成的知识图谱。
27+
28+
在对话时,系统会自动查询知识图谱,并获取相关知识。

docs/images/graph3.png

339 KB
Loading

mcp-server/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,8 @@ python test_module.py
136136
如果遇到导入错误,请确保:
137137
1. 已安装所有必需的依赖包
138138
2. Python 版本兼容(推荐 3.10+)
139-
3. 没有文件名冲突(避免使用 `mcp.py` 作为文件名)
139+
3. 没有文件名冲突(避免使用 `mcp.py` 作为文件名)
140+
141+
## 调用效果
142+
143+
<img width="950" height="2063" alt="118d078426f42f3d4983c13386085d7f" src="https://github.com/user-attachments/assets/09111ec8-0489-415c-969d-aa3835778e14" />

0 commit comments

Comments
 (0)