Skip to content

Commit

Permalink
Merge pull request #139 from LuShanYanYu7/main
Browse files Browse the repository at this point in the history
add experience
  • Loading branch information
yangj1211 authored Nov 1, 2024
2 parents 8c63402 + e563547 commit 60e9d12
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 9 deletions.
24 changes: 24 additions & 0 deletions docs/ModelPlayground/experiment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
sidebar_position: 6
title: experiment
sidebar_label: experiment
---

Experiment is an online interactive platform where users can input data and observe model outputs directly without programming, ideal for quickly testing and understanding model performance.

1. Go to the **Experience** Center in the left sidebar. On the **Experience** Center page, you can see the available models, and filter them by Model.

<img src={require('../../static/img/experience/1.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />

2. In the Prompt section, enter a system prompt, such as “Hello, I am your dedicated AI customer service,” to adjust the model’s output.

<img src={require('../../static/img/experience/2.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />

3. Finally, adjust the Temperature, Top P, and Max_tokens parameters to control the model’s output.

• Temperature controls the randomness and creativity of the generated text. Higher values increase randomness, with a range of 0-1.

• Top P manages the diversity of output tokens. Higher values allow for more variety, with a range of 0-1.

• Max_tokens limits the maximum number of tokens in the output. The default value is 200, with a maximum of 4096.
<img src={require('../../static/img/experience/3.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />
2 changes: 1 addition & 1 deletion docs/ModelPlayground/usage statistics.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 4
sidebar_position: 5
title: Usage Statistics
sidebar_label: Usage Statistics
---
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
sidebar_position: 6
title: 体验中心
sidebar_label: 体验中心
---

体验中心是一个在线交互平台,用户可以直接输入数据并观察模型输出,无需编程,适用于快速测试和了解模型性能。

## 操作步骤

1.进入左侧侧边栏中的**体验中心**;在**体验中心**页面,可以看到体验中心上线的模型,可以通过**模型**进行筛选。
<img src={require('../../../../../static/img/experience/1.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />

2.在**提示词**部分,输入系统提示词,例如“你好,我是你的专属 AI 客服”,以便调整模型的输出。
<img src={require('../../../../../static/img/experience/2.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />

3.最后,通过调整参数 Temperature、Top P 和 Max_tokens 来控制模型的输出。

• Temperature 用于调节生成文本的随机性和创造性,值越大随机性越强,取值范围为 0-1。

• Top P 控制输出 tokens 的多样性,值越大,输出的 tokens 类型越丰富,取值范围同样为 0-1。

• Max_tokens 则限制输出文本的最大 tokens 数量,默认值为 200,最大值为 4096。

<img src={require('../../../../../static/img/experience/3.png').default} alt="体验中心" style={{width: '1000px', height: 'auto'}} />
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
sidebar_position: 4
sidebar_position: 5
title: 用量统计
sidebar_label: 用量统计
---
用量统计支持筛选API KEY和具体的时间范围展示API KEY的用量。

1.进入左侧侧边栏中的**用量统计**,默认展示所有API KEY的总和统计
<img src={require('../../../../../static/img/usage/usagestatistic.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} />
2.在API KEY下拉框中筛选想具体关注的API KEY,同时可以筛选具体的时间范围,支持按天或按小时筛选。可以查看到当前API KEY在具体时间范围内消耗的token数和请求次数
<img src={require('../../../../../static/img/usage/usagestatistic2.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} />
3.鼠标悬浮在柱状图上,可以查看到不同模型的占用量。
<img src={require('../../../../../static/img/usage/usagestatistic3.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} />
用量统计支持筛选 API KEY 和具体的时间范围展示 API KEY 的用量

1.进入左侧侧边栏中的**用量统计**,默认展示所有 API KEY 的总和统计
<img src={require('../../../../../static/img/usage/usagestatistic.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} /> 2.在 API KEY 下拉框中筛选想具体关注的 API KEY,同时可以筛选具体的时间范围,支持按天或按小时筛选。可以查看到当前 API KEY 在具体时间范围内消耗的 token 数和请求次数。
<img src={require('../../../../../static/img/usage/usagestatistic2.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} /> 3.鼠标悬浮在柱状图上,可以查看到不同模型的占用量。
<img src={require('../../../../../static/img/usage/usagestatistic3.png').default} alt="用量统计" style={{width: '1000px', height: 'auto'}} />
Binary file added static/img/experience/1.png
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 static/img/experience/2.png
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 static/img/experience/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60e9d12

Please sign in to comment.