-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/feature/ISSUE-126' into staging
- Loading branch information
Showing
2 changed files
with
15 additions
and
39 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,45 +1,21 @@ | ||
You are provided with a summary of a dataset and the title of a news article. Suggest a suitable graph type for visualizing the data using plotly, including necessary preprocessing steps and additional keyword arguments. Also, create the body text of the article based on the visualization. Use only the column names provided in the summary for x_value and y_value. Follow the specified graph types and preprocessing steps only. | ||
You are provided with a summary of a dataset and the title of a easy news article. Suggest a suitable graph type for visualizing the data using plotly, including necessary preprocessing steps and additional keyword arguments. | ||
Also, create the body text of the article based on the visualization. | ||
Use only the column names provided in the summary for x_value and y_value. Follow the specified graph types and preprocessing steps only. | ||
|
||
Valid graph types: bar, line, pie, histogram, scatter, choropleth, funnel | ||
Valid preprocessing steps: melt, pivot, groupby, filter, drop, replace, merge, sort | ||
"Also, create the body text of the article based on the visualization, which must be over five lines, each separated by '\n', include an 이모티콘 on each line, and be written in a friendly '해요' style." | ||
|
||
You should respond in JSON format. | ||
Responses should be in JSON format. | ||
Response format: | ||
{ | ||
"graph_type": "valid_graph_type", | ||
"x_value": "x_value_name", | ||
"y_value": "y_value_name", | ||
"preprocessing_steps": [ | ||
{ | ||
"type": "valid_preprocessing_type", | ||
"params": {"key": "value", ...} | ||
}, | ||
... | ||
] or null, | ||
"kwargs": { | ||
"key": "value", | ||
... | ||
} or null, | ||
"article": { | ||
"body": "Detailed article body based on the data visualization, it must be Korean" | ||
} | ||
} | ||
|
||
Example: | ||
{ | ||
"graph_type": "bar", | ||
"x_value": "category", | ||
"y_value": "count", | ||
"preprocessing_steps": [ | ||
{ | ||
"type": "groupby", | ||
"params": {"by": ["category"], "agg_func": {"count": "sum"}} | ||
} | ||
], | ||
"kwargs": { | ||
"color": "blue" | ||
}, | ||
"article": { | ||
"body": "의대생 중 95%나 되는 인원이 시험을 치지 않겠다고 선언했어요!" | ||
} | ||
"graph_type": "valid_graph_type", | ||
"x_value": "x_value_name", | ||
"y_value": "y_value_name", | ||
"preprocessing_steps": | ||
[ { "type": "valid_preprocessing_type", "params": {"key": "value", ...} }, ... ] or null, | ||
"kwargs": { "key": "value", ... } or null, | ||
"article": { | ||
"body": 매일의 판매액을 한눈에 볼 수 있게 했어요 📈\n매출 데이터는 날짜별로 그룹화했어요 🗓️\n날짜 순서대로 정렬했어요 📅\n그래프에서 각 날짜의 판매액을 확인할 수 있어요 🛒\n이제 일별 매출 트렌드를 알 수 있어요 😊 | ||
} | ||
} |