-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,665 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
109 changes: 109 additions & 0 deletions
109
evaluations/datastes/chart/organization-chart/metrics.json
Large diffs are not rendered by default.
Oops, something went wrong.
541 changes: 541 additions & 0 deletions
541
evaluations/datastes/chart/organization-chart/test.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
## 角色 | ||
|
||
你是一个 mock 图表数据生成器,生成组织架构图相关的可视化问答对数据。 | ||
|
||
## 任务 | ||
|
||
1. 结合可视化场景,随机生成组织架构图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用组织机构图来可视化以下数据 `[{"name":"Eric Joplin","description":"Chief Executive Officer"}, {"name":"Linda Newland","description":"Chief Executive Assistant", supervisor: "Eric Joplin"}]`。” | ||
2. 根据可视化相关问题,生成组织架构图图表的配置 | ||
3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} | ||
|
||
## 组织架构图图表知识库 | ||
|
||
### 图表 Spec | ||
|
||
```json | ||
{ | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Eric Joplin", | ||
"description": "Chief Executive Officer", | ||
"children": [ | ||
{ | ||
"name": "Linda Newland", | ||
"description": "Chief Executive Assistant" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### 数据要求 | ||
|
||
- type:图表的类型,必填,文本类型,值必须为 "organization-chart" | ||
- data:图表的数据,必填,`OrganizationChartData`对象类型,包含以下字段: | ||
- name:节点的名称,表示职位或部门的名称,必须唯一,必填,字符串类型 | ||
- description:节点的描述信息,可以包含职位职责或部门简介等,选填,字符串类型 | ||
- children: 节点数组,表示下级职位或部门。如果当前节点没有子节点,该字段可以省略。每个子节点本身也是一个 `OrganizationChartData` 对象,这意味着它可以包含自己的子节点,从而递归地构建出一个多层次的树状结构,选填,数组对象类型 | ||
|
||
## 参考例子 | ||
|
||
```json | ||
[ | ||
{ | ||
"type": "data2chart", | ||
"question": "用组织机构图来可视化以下数据 `[{\"name\":\"Eric Joplin\",\"description\":\"Chief Executive Officer\"}, {\"name\":\"Linda Newland\",\"description\":\"Chief Executive Assistant\", supervisor: \"Eric Joplin\"}]`。", | ||
"answer": { | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Eric Joplin", | ||
"description": "Chief Executive Officer", | ||
"children": [{ "name": "Linda Newland", "description": "Chief Executive Assistant" }] | ||
} | ||
} | ||
} | ||
] | ||
``` | ||
|
||
## 要求 | ||
|
||
- 请生成 5 条这样的记录,并以 JSON 格式输出。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
## 角色 | ||
|
||
你是一个 mock 图表数据生成器,生成组织架构图相关的可视化问答对数据。 | ||
|
||
## 任务 | ||
|
||
1. 随机结合可视化场景,生成组织架构图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “Alice Johnson 是公司的首席技术官,她的团队包括资深软件工程师 Bob Smith 和 IT 支持部门负责人 Eve Black。Bob Smith 负责带领软件工程团队,团队成员包括软件工程师 Charlie Brown 和 Diana White。Eve Black 负责 IT 支持部门,团队成员包括 IT 支持专家 Frank Green 和 Grace Blue。用组织架构图可视化。” | ||
2. 根据可视化相关问题,生成组织架构图图表的配置 | ||
3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} | ||
|
||
## 组织架构图图表知识库 | ||
|
||
### 图表 Spec | ||
|
||
```json | ||
{ | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Eric Joplin", | ||
"description": "Chief Executive Officer", | ||
"children": [ | ||
{ | ||
"name": "Linda Newland", | ||
"description": "Chief Executive Assistant" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### 数据要求 | ||
|
||
- type:图表的类型,必填,文本类型,值必须为 "organization-chart" | ||
- data:图表的数据,必填,`OrganizationChartData`对象类型,包含以下字段: | ||
- name:节点的名称,表示职位或部门的名称,必须唯一,必填,字符串类型 | ||
- description:节点的描述信息,可以包含职位职责或部门简介等,选填,字符串类型 | ||
- children: 节点数组,表示下级职位或部门。如果当前节点没有子节点,该字段可以省略。每个子节点本身也是一个 `OrganizationChartData` 对象,这意味着它可以包含自己的子节点,从而递归地构建出一个多层次的树状结构,选填,数组对象类型 | ||
|
||
## 参考例子 | ||
|
||
```json | ||
[ | ||
{ | ||
"type": "text2chart", | ||
"question": "Alice Johnson 是公司的首席技术官,她的团队包括资深软件工程师 Bob Smith 和 IT 支持部门负责人 Eve Black。Bob Smith 负责带领软件工程团队,团队成员包括软件工程师 Charlie Brown 和 Diana White。Eve Black 负责 IT 支持部门,团队成员包括 IT 支持专家 Frank Green 和 Grace Blue。用组织架构图可视化。", | ||
"answer": { | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Alice Johnson", | ||
"description": "Chief Technology Officer", | ||
"children": [ | ||
{ | ||
"name": "Bob Smith", | ||
"description": "Senior Software Engineer", | ||
"children": [ | ||
{ "name": "Charlie Brown", "description": "Software Engineer" }, | ||
{ "name": "Diana White", "description": "Software Engineer" } | ||
] | ||
}, | ||
{ | ||
"name": "Eve Black", | ||
"description": "IT Support Department Head", | ||
"children": [ | ||
{ "name": "Frank Green", "description": "IT Support Specialist" }, | ||
{ "name": "Grace Blue", "description": "IT Support Specialist" } | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
``` | ||
|
||
## 要求 | ||
|
||
- 请生成 5 条这样的记录,并以 JSON 格式输出。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
## 图表属性 | ||
|
||
- 名称:组织架构图 | ||
- 别名:组织结构图、机构图、Dagre 图、英文名 Organizational Chart | ||
- 形状:网络形 | ||
- 图表类别:关系图 | ||
- 图表功能:层级类 | ||
|
||
## 基础概念 | ||
|
||
组织架构图,用于直观地展示组织内部的层级结构和部门关系。它通过节点和边表示不同的职位、部门及其上下级关系。每个节点代表一个职位或部门,边则表示上下级或平级关系。以树状结构呈现,顶层为最高管理层,逐层向下展开,直至各个部门和职位。 | ||
|
||
## 适用场景 | ||
|
||
- 想要展示公司或团队的层级结构,明确各个职位和部门的上下级关系 | ||
- 展示员工的职位和部门分布 | ||
- 项目管理时,明确项目团队的成员和职责分工 | ||
- 用于股权穿透、投资上下游公司等依赖分析 | ||
|
||
## 不适用场景 | ||
|
||
- 展示具体的线性任务流程,更推荐使用流程图 | ||
- 没有明确上下级关系的扁平化组织 | ||
|
||
## 图表用法 | ||
|
||
### 图表属性 | ||
|
||
```typescript | ||
type Data = { | ||
name: string; | ||
description?: string; | ||
children?: Data[]; | ||
}; | ||
|
||
type OrganizationChart = { | ||
type: 'organization-chart'; | ||
data: Data; | ||
}; | ||
``` | ||
|
||
### 数据要求 | ||
|
||
- type:图表的类型,必填,文本类型,值必须为 "organization-chart" | ||
- data:图表的数据,必填,`OrganizationChartData`对象类型,包含以下字段: | ||
- name:节点的名称,表示职位或部门的名称,必须唯一,必填,字符串类型 | ||
- description:节点的描述信息,可以包含职位职责或部门简介等,选填,字符串类型 | ||
- children: 节点数组,表示下级职位或部门。如果当前节点没有子节点,该字段可以省略。每个子节点本身也是一个 `OrganizationChartData` 对象,这意味着它可以包含自己的子节点,从而递归地构建出一个多层次的树状结构,选填,数组对象类型 | ||
|
||
## 使用示例 | ||
|
||
1. Alice Johnson 是公司的首席技术官,她的团队包括资深软件工程师 Bob Smith 和 IT 支持部门负责人 Eve Black。Bob Smith 负责带领软件工程团队,团队成员包括软件工程师 Charlie Brown 和 Diana White。Eve Black 负责 IT 支持部门,团队成员包括 IT 支持专家 Frank Green 和 Grace Blue。 | ||
|
||
```json | ||
{ | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Alice Johnson", | ||
"description": "Chief Technology Officer", | ||
"children": [ | ||
{ | ||
"name": "Bob Smith", | ||
"description": "Senior Software Engineer", | ||
"children": [ | ||
{ | ||
"name": "Charlie Brown", | ||
"description": "Software Engineer" | ||
}, | ||
{ | ||
"name": "Diana White", | ||
"description": "Software Engineer" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Eve Black", | ||
"description": "IT Support Department Head", | ||
"children": [ | ||
{ | ||
"name": "Frank Green", | ||
"description": "IT Support Specialist" | ||
}, | ||
{ | ||
"name": "Grace Blue", | ||
"description": "IT Support Specialist" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
2. 用组织机构图来可视化以下数据 `{"name":"Eric Joplin","description":"Chief Executive Officer","children":[{"name":"Linda Newland","description":"Chief Executive Assistant"}]}`。 | ||
|
||
```json | ||
{ | ||
"type": "organization-chart", | ||
"data": { | ||
"name": "Eric Joplin", | ||
"description": "Chief Executive Officer", | ||
"children": [ | ||
{ | ||
"name": "Linda Newland", | ||
"description": "Chief Executive Assistant" | ||
} | ||
] | ||
} | ||
} | ||
``` |