Skip to content

Commit

Permalink
wip: visual knowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Nov 21, 2024
1 parent fe97ba7 commit 011d2c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export default () => {
};
```

## 🛠 Custom renderer
<details>
<summary>🛠 Custom renderer</summary>

```jsx
import { GPTVisLite, withChartCode, ChartType, Pie } from '@antv/gpt-vis';
Expand Down Expand Up @@ -101,6 +102,8 @@ export default () => {
};
```

</details>

## 🐍 Streamlit

```python
Expand All @@ -120,6 +123,8 @@ set_gpt_vis(content)

Learn more 👉 [streamlit-gpt-vis](https://github.com/antvis/GPT-Vis/tree/main/bindings/streamlit-gpt-vis)

## Visual Knowledge

## 💻 Development

```bash
Expand Down
19 changes: 18 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export default () => {
};
```

## 🛠 定制渲染器
<details>
<summary>🛠 定制渲染器</summary>

```jsx
import { GPTVisLite, withChartCode, ChartType, Pie } from '@antv/gpt-vis';
Expand Down Expand Up @@ -101,6 +102,8 @@ export default () => {
};
```

</details>

## 🐍 Streamlit

```python
Expand All @@ -120,6 +123,20 @@ set_gpt_vis(content)

更多了解 👉 [streamlit-gpt-vis](https://github.com/antvis/GPT-Vis/tree/main/bindings/streamlit-gpt-vis)

## 🗂 可视化知识库

[可视化知识库](https://github.com/antvis/GPT-Vis/tree/main/knowledges)的目的是为了提供一个全面、系统的资源,帮助 Agent 理解、选择、创建各种数据可视化图表,以下是 Agent 通过 RAG 方式接入知识,根据[评测数据集](https://github.com/antvis/GPT-Vis/tree/main/evaluations/datastes/chart)生成准确图表协议的指标。

| | | | | | |
| ---------------- | ------------------- | -------- | -------------- | --------------------- | -------------- |
| 折线图(多折线) | 柱形图(分组/堆叠) | 饼图 | 面积图(堆叠) | 条形图(分组/堆叠条) | 散点图(气泡) |
| 40/40 | 25/27 | 13/14 | 18/18 | 18/20 | 10/10 |
| 直方图 | 矩阵树图 | 词云图 | 雷达图 | 双轴图 | 标注地图 |
| 15/16 | 13/15 | 11/12 | 23/23 | 13/14 | 10/11 |
| 热力地图 | 网络图 | 思维导图 | 组织架构图 | 流程图 | 鱼骨图 |
| 9/10 | 8/10 | 12/14 | 10/12 | 10/11 | 10/12 |
| | | | | | |

## 💻 本地开发

```bash
Expand Down

0 comments on commit 011d2c6

Please sign in to comment.