Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAK 新增组合应用和对话 #161

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/zh/docs/dak/images/chat05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/dak/images/chat06.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/dak/images/create-combined.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/dak/images/create-read.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/zh/docs/dak/user-guide/app-center/conversation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
hide:
- toc
---

# 应用对话说明

**对话** 是 ChatGPT 出现后最常见的获取资讯方式。在 d.run 中,一个应用被发布之后,即可使用对话功能。您可以在对话中关联语料库后自由提问,可以随时查阅历史记录,另外导航栏还列出了最近使用的对话。
Expand All @@ -24,6 +29,16 @@

![聊天](../../images/chat04.jpg)

### 组合应用

1. 在左侧导航栏,点击 **应用中心** ,选择已发布的 **组合应用** 类型的应用,点击右下角的对话图标。

![点击对话图标](../../images/chat05.jpg)

2. 在对话框中输入问题,点击 **发送** ,或敲击回车键,进行对话。

![聊天](../../images/chat06.jpg)

## 对话管理

![manage](../images/manage.jpg)
Expand Down
51 changes: 46 additions & 5 deletions docs/zh/docs/dak/user-guide/app-center/create-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ hide:

本页介绍如何在应用中心创建一个应用。

<div class="video-container">
<!-- <div class="video-container">
<iframe width="560" height="315" src="https://harbor-test2.cn-sh2.ufileos.com/drun/deploy-qa.mp4" title="部署应用教学" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
</div> -->

### 创建 RAG 应用,具体步骤如下

Expand All @@ -24,7 +24,7 @@ hide:
- **填写应用简介** :简介应用,不超过 100 个字符。
- **应用调试** :选择开启,开启后,对话界面将显示对话的处理过程。

3. 配置 AI
3. AI 配置

- **选择大语言模型服务** :决定是使用本地模型服务还是在线模型服务(例如 Azure Open AI 或文心一言)。
- **设置随机度** :调整模型回答的创造性/发散性程度。
Expand Down Expand Up @@ -81,7 +81,7 @@ hide:

### 创建全文阅读应用,具体步骤如下

1. 在 **应用中心** 页面中,点击 **创建** 按钮,选择选择创建全文阅读应用
1. 在 **应用中心** 页面中,点击 **创建** 按钮,选择创建 **全文阅读** 应用

![应用中心](../../images/app-center.jpg)

Expand All @@ -91,7 +91,7 @@ hide:
- **输入应用名称** :限制在 20 个字符以内。
- **填写应用简介** :简介应用,不超过 100 个字符。

3. 配置 AI
3. AI 配置

- **选择大语言模型服务** :决定是使用本地模型服务还是在线模型服务(例如 Azure Open AI 或文心一言)。
- **设置随机度** :调整模型回答的创造性/发散性程度。
Expand All @@ -106,3 +106,44 @@ hide:
请确保按照上述步骤仔细填写和配置应用的各个方面,以确保应用能够准确和高效地响应用户的需求。

- 点击 **发布** 按钮,应用将会被发布到应用中心,用户可以在应用中心中找到并使用您的应用。

![创建全文阅读应用](../../images/create-read.jpg)

### 创建组合应用,具体步骤如下

1. 在 **应用中心** 页面中,点击 **创建** 按钮,选择创建 **组合应用**

![应用中心](../../images/app-center.jpg)

2. 填写应用基础信息

- **上传应用图标** :选择 jpg、jpeg 或 png 格式的图片,确保文件大小不超过 10MB。
- **输入应用名称** :限制在 20 个字符以内。
- **填写应用简介** :简介应用,不超过 100 个字符。
- **应用调试** :选择开启,开启后,对话界面将显示对话的处理过程。

3. AI 配置

- **选择大语言模型服务** :决定是使用本地模型服务还是在线模型服务(例如 Azure Open AI 或文心一言)。
- **应用选择提示词** :为模型提供检索和回答问题的模板。

!!! note

提示词中需要设置不同应用的 ID,应用 ID 从应用配置下的应用中复制获取。

4. 应用配置

- **选择应用** :选择应用中心下可以正常对话的应用。
- **复制ID** :用于填入提示词中,实现模型对话时选择不同应用。

5. 保存并发布应用

- 点击 **保存** 按钮,应用设置完成,应用会保存成草稿状态。

!!! note

请确保按照上述步骤仔细填写和配置应用的各个方面,以确保应用能够准确和高效地响应用户的需求。

- 点击 **发布** 按钮,应用将会被发布到应用中心,用户可以在应用中心中找到并使用您的应用。

![创建组合应用](../../images/create-combined.jpg)
Loading