Skip to content

Commit

Permalink
Merge pull request #197 from windsonsea/dak
Browse files Browse the repository at this point in the history
[en] Add dak pages
  • Loading branch information
windsonsea authored Dec 31, 2024
2 parents e43dbe7 + 60ca644 commit ad04eea
Show file tree
Hide file tree
Showing 14 changed files with 413 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/zh/docs/dak/data-analysis/qa-quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ d.run 支持统计用户对问答质量的反馈,并以报表的方式展示

## 查看问答质量详情

1.**数据分析** 栏中点击 **问答质量** ,找到需要查看的问答,点击该问答记录可进入详情页面。
1.**数据分析** 栏中点击 **问答质量** 找到需要查看的问答点击该问答记录可进入详情页面。

![详情菜单](images/qa-quality.jpg)

Expand Down
3 changes: 2 additions & 1 deletion docs/zh/docs/dak/data-analysis/shard-hit-ratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ d.run 统计了用户对于分片数据的使用情况,将分片按命中次

## 查看分片命中率详情

1.**数据分析** 栏中点击 **分片命中率** ,通过 **搜索** 找到您关注的分片,点击该分片可进入详情页面,可查看该分片被引用的详细情况。
1.**数据分析** 栏中点击 **分片命中率** ,通过 **搜索** 找到您关注的分片点击该分片可进入详情页面,可查看该分片被引用的详细情况。

![选择详情](images/shard-hit-ratio.jpg)

2. 可以查看以下内容:

- 分片的基本信息:包括文本分片ID以及具体的分片内容。
- 详细信息:该分片被问题命中的问题内容、应用名称、提问人以及提问时间。

Expand Down
12 changes: 4 additions & 8 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,11 +7,7 @@ hide:

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

<!-- <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> -->

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

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

Expand Down Expand Up @@ -79,7 +75,7 @@ hide:

![发布应用](images/publish-app.jpg)

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

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

Expand Down Expand Up @@ -109,7 +105,7 @@ hide:

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

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

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

Expand Down Expand Up @@ -146,4 +142,4 @@ hide:

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

![创建组合应用](../../images/create-combined.jpg)
![创建组合应用](../../images/create-combined.jpg)
20 changes: 20 additions & 0 deletions docs/zh/docs/en/dak/data-analysis/number-of-qa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
hide:
- toc
---

# Number of Q&As

d.run supports recording the number of Q&As created in this workspace.

When users engage in Q&As, the records will be saved under the workspace where the app was created. Click the **Refresh** button in the upper right corner to view the latest Q&A count data.

![Refresh](images/refresh-number-of-qa.png)

You can summarize the Q&A counts of all users in this workspace into a table for export.

1. On the **Number of Q&As** page, click the **Export** button in the upper right corner.

<!-- ![Export](images/export-number-of-qa.jpg) -->

2. The Q&A counts of all users in this workspace will be compiled into a xlsx file for download.
33 changes: 33 additions & 0 deletions docs/zh/docs/en/dak/data-analysis/qa-quality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Q&A Quality

d.run supports statistics on user feedback regarding the quality of Q&A, displaying it in reports and also allows data to be exported to xlsx format.

## View Q&A Quality Details

1. In the **Data Analysis** section, click **Q&A Quality** to find the Q&A you wish to view. Click the Q&A record to enter the details page.

<!-- ![Details Menu](images/qa-quality.jpg) -->

2. You can view the following content:

- User's question, including the name of the user who asked.
- App's answer: the answer generated by the app in response to the user's question.
- The prompt used for the question.

<!-- ![View Details](images/qa-quality-detail.jpg) -->

3. When new Q&As are generated, you can click the **Refresh** button in the upper right corner to view the latest Q&A details.

<!-- ![Refresh](images/refresh-qa-quality.jpg) -->

## Export Q&A Quality

You can summarize all user feedback on Q&A quality within this workspace into a table for export.

1. On the **Q&A Quality** page, click the **Export** button in the upper right corner.

<!-- ![Export](images/export-qa-quality.jpg) -->

2. Click **Export Records** to view the exported Q&A quality records. Select the records you need to download and export them as an Excel file.

<!-- ![Export](images/export-qa-records.jpg) -->
32 changes: 32 additions & 0 deletions docs/zh/docs/en/dak/data-analysis/shard-hit-ratio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Shard Hit Ratio

d.run tracks user interactions with shard data, ranking shards by hit count. It supports viewing shard content and exporting shard usage statistics to a xlsx file.

## View Shard Hit Ratio Details

1. In the **Data Analysis** section, click **Shard Hit Ratio**. Use the **Search** function to find the shard you are interested in. Click the shard to enter the details page, where you can view detailed information about how this shard has been referenced.

<!-- ![Select Details](images/shard-hit-ratio.jpg) -->

2. You can view the following content:

- Basic information about the shard: including the text shard ID and specific shard content.
- Detailed information: the questions that hit this shard, app name, questioner, and the time the question was asked.

<!-- ![View Details](images/shard-hit-ratio-detail.png) -->

3. When new Q&As are generated, you can click the **Refresh** button in the upper right corner to view the latest shard hit ratio results.

<!-- ![Refresh](images/refresh-shard-hit-ratio-1.jpg) -->

You can also **Refresh** in the shard hit ratio details to see the latest results.

<!-- ![Refresh Results](images/refresh-shard-hit-ratio-2.png) -->

## Export Shard Hit Ratio

1. On the **Shard Hit Ratio** page, click the **Export** button in the upper right corner.

<!-- ![Export](images/export-shard-hit-ratio.jpg) -->

2. This will export the shards created in this workspace and compile feedback on these shard usage statistics into a xlsx file for download.
27 changes: 27 additions & 0 deletions docs/zh/docs/en/dak/data-analysis/shard-quality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
hide:
- toc
---

# Shard Quality

A shard refers to dividing larger data into multiple segments, which facilitates model training by making it easier to locate and hit the data.
d.run supports viewing the quality of shards. The specific steps are as follows:

1. In the **Data Analysis** section, click **Shard Quality**, and use the **Search** function to find the shard you are interested in. Click the shard to enter the details page, where you can view detailed information about this shard.

<!-- ![Select Details Menu Item](images/shard-quality.jpg) -->

2. You can view the following content:

- Corpus: Which corpus the shard belongs to.
- Update Time: The last update time of the shard file.
- Shard ID: The unique identification code of the shard.
- Shard Content: The specific content of the shard after slicing.
- Additional Information: Additional content related to this shard.

<!-- ![View Details](images/shard-quality-detail.jpg) -->

3. When new shard files are evaluated, you can click the **Refresh** button in the upper right corner to view the latest shard files.

<!-- ![Refresh](images/refresh-shard-quality.png) -->
44 changes: 44 additions & 0 deletions docs/zh/docs/en/dak/data-analysis/suggestions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Suggestions

d.run provides an entry for users to submit feedback, allowing administrators to see what issues need improvement in the apps within this workspace.

## Handling Feedback

1. In the **Data Analysis** section, click **Improvement Suggestions**, find the feedback that needs to be addressed, and click the **** button on the right.

2. In the pop-up menu, select **Handle Feedback** (clicking the ticket information within the range will take you to the details page).

<!-- ![Click to Handle Feedback](images/processing-feedback.jpg) -->

3. You can view the following content:

- User feedback on the Q&A.
- Relevant information about the Q&A: assistant name, model name, number of citations, processing time, and Q&A details.

<!-- ![Q&A Relevant Information](images/feedback-content.png) -->

- Latest Citations: You can view the details of all citations referenced in the answer.

<!-- ![Latest Citations](images/latest-quote.png) -->

- Details of ticket processing.

4. Click the status of the ticket marked as **Pending** to change the status to **In Progress** or **Completed**, and fill in the **Processing Description** below.

5. Click the **OK** button in the lower right corner to modify the feedback processing status.

<!-- ![Click Confirm](images/modify-processing-state.png) -->

6. When new improvement suggestions are submitted, you can click the **Refresh** button in the upper right corner to view the latest suggestions.

<!-- ![Refresh](images/refresh-improvement-suggestions.jpg) -->

## Export Feedback

Aggregate all Q&A details and feedback into a table for export.

1. Click the **left side of Q&A feedback**, select the feedback you want to export, and click the **Export** button in the upper right corner.

2. The Q&A content will be compiled into a xlsx file for download.

<!-- ![Export](images/export-feedback.png) -->
16 changes: 8 additions & 8 deletions docs/zh/docs/en/dak/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ The features of the Intelligent Q&A are summarized in the table below:

| Module | Features | Description |
| --- | ---- | --- |
| Conversation | Context-Aware Intelligent Q&A | Connects application corpus to achieve context-aware intelligent Q&A functionality |
| Conversation | Context-Aware Intelligent Q&A | Connects app corpus to achieve context-aware intelligent Q&A functionality |
| | User Interaction Optimization | Supports users to **evaluate, copy, regenerate, delete conversations, or submit feedback** on AI responses, enhancing user experience |
| Application Center | Application Lifecycle Management | Provides full lifecycle management from **creation, deployment, monitoring to maintenance** |
| | Environment Isolation | Supports binding or unbinding of workspaces to achieve **environment isolation**, ensuring application security |
| | Model Service Integration | Integrates **GLM, Llama, and other model services**, enhancing the efficiency of RAG (Retrieval-Augmented Generation) applications |
| App Center | App Lifecycle Management | Provides full lifecycle management from **creation, deployment, monitoring to maintenance** |
| | Environment Isolation | Supports binding or unbinding of workspaces to achieve **environment isolation**, ensuring app security |
| | Model Service Integration | Integrates **GLM, Llama, and other model services**, enhancing the efficiency of RAG (Retrieval-Augmented Generation) apps |
| | Diverse Configuration Options | Offers options for AI configuration, corpus association, retrieval strategies, etc., to optimize AI response quality |
| | Application Key Support | Supports generation of **application keys** for secure access to OpenAPI conversations |
| | Application Link Sharing | Allows **link sharing of applications** and supports H5 page display for mobile use |
| | App Key Support | Supports generation of **app keys** for secure access to OpenAPI conversations |
| | App Link Sharing | Allows **link sharing of apps** and supports H5 page display for mobile use |
| | Conversation Process Viewing | Supports viewing the complete **conversation process**, enhancing user experience and troubleshooting efficiency |
| | Combination Application Support | Supports **combination applications** for intent recognition, enhancing the ability to handle complex scenarios |
| | Combination App Support | Supports **combination apps** for intent recognition, enhancing the ability to handle complex scenarios |
| | Language Translation Support | Supports **translation** of user input content, improving the accuracy of corpus matching |
| | Multilingual Response Selection | Allows users to choose the **language** of AI responses, catering to multilingual scenarios |
| | Full Text Reading Application Support | New full text reading application, supports displaying **image content** |
| | Full Text Reading App Support | New full text reading app, supports displaying **image content** |
| | Support for Numbers and Chemical Formulas | Supports the display of **mathematical formulas and chemical equations**, enhancing the user experience in academic and research contexts |
| Corpus Management | Multiple Import Methods | Supports various methods for managing the corpus, including **standard import, formatted import, manual import, and image-text import** |
| | Intelligent Sharding | Supports **automatic sharding** by delimiter or size, with customizable sharding logic through plugins |
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/docs/en/dak/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ hide:
The d.run intelligent Q&A product utilizes RAG technology to vectorize user data, and then combines a large language model with similarity search to query the user data repository, achieving knowledge-based Q&A.
This method addresses the issues of user privacy data protection and model hallucination, resulting in more accurate and personalized responses.

Here, you can create applications and plugins to build a corpus for AI conversations, and then optimize user experience through data analysis feedback.
Here, you can create apps and plugins to build a corpus for AI conversations, and then optimize user experience through data analysis feedback.

![Application Center](./images/app-center.jpg)
![App Center](./images/app-center.jpg)

[Register and Try d.run](https://console.d.run/){ .md-button .md-button--primary }
73 changes: 73 additions & 0 deletions docs/zh/docs/en/dak/user-guide/app-center/conversation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
hide:
- toc
---

# App Dialogue Instructions

**Dialogue** is the most common way to obtain information since the emergence of ChatGPT. In d.run, once an app is published, the dialogue function can be used. You can freely ask questions in the dialogue after linking to a corpus, consult historical records at any time, and the navigation bar also lists the recently used dialogues.

## Daily Dialogue

### RAG App

1. In the left navigation bar, click on **App Center**, select the published RAG type app, and click the dialogue icon in the lower right corner.

<!-- ![Click dialogue icon](../../images/chat01.jpg) -->

2. Enter your question in the dialogue box, click **Send**, or press the Enter key to start the conversation.

<!-- ![Chat](../../images/chat02.jpg) -->

### Full Text Reading App

1. In the left navigation bar, click on **App Center**, select the published **Full Text Reading** type app, and click the dialogue icon in the lower right corner.

<!-- ![Click dialogue icon](../../images/chat03.jpg) -->

2. Upload a file in the lower right corner of the dialogue box and ask questions based on the content of the file. Click **Send**, or press the Enter key to start the conversation.

<!-- ![Chat](../../images/chat04.jpg) -->

### Combination App

1. In the left navigation bar, click on **App Center**, select the published **Combination App** type app, and click the dialogue icon in the lower right corner.

<!-- ![Click dialogue icon](../../images/chat05.jpg) -->

2. Enter your question in the dialogue box, click **Send**, or press the Enter key to start the conversation.

<!-- ![Chat](../../images/chat06.jpg) -->

## Dialogue Management

<!-- ![manage](../images/manage.jpg) -->

- **Pin**, **Rename**, and **Delete**: In the history pane, click the **** on the right side of a dialogue to pin, rename, or delete the dialogue.
- **Clear**: In the upper left corner of the dialogue page, click the 🧹 icon to **clear** the dialogue.
- **Link Corpus**: In the lower left corner of the input box, click the 📖 icon to link the corpus.

Selection of corpus: The **chat app** will match the most similar corpus in the selected corpus as a reference to answer your questions. A successful operation will indicate that the corpus has been selected. You can also deselect one or more corpora.

!!! info

If you cannot select or change the linked corpus, you can only add a corpus. The vectorization model of the app must be consistent with the vectorization model of the corpus to be usable.

- **Stop Dialogue**: After asking a question, click the icon on the right side of the input box to stop the dialogue, allowing the assistant to cease outputting content.

## Some Useful Icons

<!-- ![page-function](../images/page-function.jpg) -->

- **Rating**: You can like 👍 or dislike 👎 a response, depending on your satisfaction with the content of the answer.
- **Copy**: You can copy a response.
- **Reset**: You can reset or regenerate a specific response.

!!! info "Randomness"

For the reset content, the administrator can adjust the model's **randomness** to control the consistency of the assistant's responses over multiple attempts.

If the randomness is high, the assistant's responses may vary each time. If high accuracy is required, the randomness can be lowered, resulting in more consistent outputs from the assistant each time.

- **Delete**: Click the trash can :material-delete: icon to delete a response, after which the deleted dialogue will not be remembered in the context of the assistant's conversation.
- **Feedback**: Click the last icon :bookmark_tabs: of a response to submit feedback, providing comments based on the quality of the assistant's responses.
Loading

0 comments on commit ad04eea

Please sign in to comment.