@antv/gpt-vis 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Components for GPTs, generative AI, and LLM projects. **Not only UI Components**
9
9
  <p align="center">
10
10
  <a href="https://gpt-vis.antv.vision" target="_blank">Document</a> •
11
11
  <a href="/knowledges" target="_blank">Knowledge</a> •
12
- <a href="https://tbox.alipay.com/experience/202410APr1n200110168?id=20241120WZh400101995" target="_blank">Agent Demo</a>
12
+ <a href="https://tbox.alipay.com/experience/202410APr1n200110168?id=20241122F8eB00104644" target="_blank">Agent Demo</a>
13
13
  </p>
14
14
 
15
15
  <div align="center">
@@ -138,6 +138,10 @@ The purpose of the [Visual Knowledge Base](https://github.com/antvis/GPT-Vis/tre
138
138
 
139
139
  Note: The numbers in the format of X/Y represent the metrics of the respective chart types when evaluated against the dataset.
140
140
 
141
+ ## 🤖 Chart Recommendation Dataset
142
+
143
+ The chart recommendation dataset is designed to evaluate or fine-tune large language models on their ability to recommend chart types based on given data. The dataset currently encompasses 16 types of charts, with 1-3 different data scenarios per chart type, and more than 15 chart data instances for each scenario. The dataset is continuously updated, and we welcome contributions of chart data collected from your own use cases. For more detailed information about the dataset, please visit [evaluations/recommend](https://github.com/antvis/GPT-Vis/tree/main/evaluations/recommend/README.md).
144
+
141
145
  ## 💻 Development
142
146
 
143
147
  ```bash
package/README.zh-CN.md CHANGED
@@ -9,7 +9,7 @@ Components for GPTs, generative AI, and LLM projects. **Not only UI Components**
9
9
  <p align="center">
10
10
  <a href="https://gpt-vis.antv.vision" target="_blank">文档</a> •
11
11
  <a href="/knowledges" target="_blank">知识库</a> •
12
- <a href="https://tbox.alipay.com/experience/202410APr1n200110168?id=20241120WZh400101995" target="_blank">体验 Agent</a>
12
+ <a href="https://tbox.alipay.com/experience/202410APr1n200110168?id=20241122F8eB00104644" target="_blank">体验 Agent</a>
13
13
  </p>
14
14
 
15
15
  <div align="center">
@@ -136,6 +136,10 @@ set_gpt_vis(content)
136
136
  | 8/10 | 12/14 | 10/12 | 10/11 | 10/12 | | |
137
137
  | | | | | | | |
138
138
 
139
+ ## 🤖 图表模型推荐数据集
140
+
141
+ 图表推荐数据集用于评测/微调大模型在“给定数据,推荐图表类型”任务上的能力。数据集目前涵盖了 16 种图表类型,每种图表类型下 1-3 个不同数据场景,每个场景下 15+ 个图表数据。数据会持续更新,也欢迎向我们贡献你的使用场景中收集的图表数据。数据集详细信息见 [evaluations/recommend](https://github.com/antvis/GPT-Vis/tree/main/evaluations/recommend/README.md)
142
+
139
143
  ## 💻 本地开发
140
144
 
141
145
  ```bash
@@ -35,10 +35,12 @@ module.exports = __toCommonJS(Lite_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_react_markdown = __toESM(require("react-markdown"));
37
37
  var import_rehype_raw = __toESM(require("rehype-raw"));
38
+ var import_remark_gfm = __toESM(require("remark-gfm"));
38
39
  var GPTVisLite = ({
39
40
  children,
40
41
  components,
41
42
  rehypePlugins,
43
+ remarkPlugins,
42
44
  ...rest
43
45
  }) => {
44
46
  return /* @__PURE__ */ import_react.default.createElement(
@@ -46,6 +48,7 @@ var GPTVisLite = ({
46
48
  {
47
49
  components,
48
50
  rehypePlugins: [import_rehype_raw.default, ...rehypePlugins ? rehypePlugins : []],
51
+ remarkPlugins: [import_remark_gfm.default, ...remarkPlugins ? remarkPlugins : []],
49
52
  ...rest
50
53
  },
51
54
  children
@@ -1,2 +1,2 @@
1
- declare const _default: "0.2.1";
1
+ declare const _default: "0.2.2";
2
2
  export default _default;
@@ -22,4 +22,4 @@ __export(version_exports, {
22
22
  default: () => version_default
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- var version_default = "0.2.1";
25
+ var version_default = "0.2.2";
@@ -1,18 +1,21 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- var _excluded = ["children", "components", "rehypePlugins"];
4
+ var _excluded = ["children", "components", "rehypePlugins", "remarkPlugins"];
5
5
  import React, { memo } from 'react';
6
6
  import Markdown from 'react-markdown';
7
7
  import rehypeRaw from 'rehype-raw';
8
+ import remarkGfm from 'remark-gfm';
8
9
  var GPTVisLite = function GPTVisLite(_ref) {
9
10
  var children = _ref.children,
10
11
  components = _ref.components,
11
12
  rehypePlugins = _ref.rehypePlugins,
13
+ remarkPlugins = _ref.remarkPlugins,
12
14
  rest = _objectWithoutProperties(_ref, _excluded);
13
15
  return /*#__PURE__*/React.createElement(Markdown, _extends({
14
16
  components: components,
15
- rehypePlugins: [rehypeRaw].concat(_toConsumableArray(rehypePlugins ? rehypePlugins : []))
17
+ rehypePlugins: [rehypeRaw].concat(_toConsumableArray(rehypePlugins ? rehypePlugins : [])),
18
+ remarkPlugins: [remarkGfm].concat(_toConsumableArray(remarkPlugins ? remarkPlugins : []))
16
19
  }, rest), children);
17
20
  };
18
21
  export default /*#__PURE__*/memo(GPTVisLite);
@@ -1,2 +1,2 @@
1
- declare const _default: "0.2.1";
1
+ declare const _default: "0.2.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.2.1';
1
+ export default '0.2.2';