Skip to content

Commit

Permalink
Merge branch 'refs/heads/feature/ISSUE-126' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stopmin committed Jul 18, 2024
2 parents 48fa0d2 + a0b1e11 commit be2e538
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
AWS_REGION: ap-northeast-2 # AWS region 설정
ECR_REPOSITORY: gyeongdan-fastapi # Amazon ECR repository 이름
ECS_SERVICE: GyeongdanFastAPI # Amazon ECS 서비스 이름
ECS_CLUSTER: Gyeongdan # Amazon ECS 클러스터 이름
ECS_CLUSTER: Gyeongdan-v2 # Amazon ECS 클러스터 이름
ECS_TASK_DEFINITION: tf-staging.json # Amazon ECS task definition 파일 경로
CONTAINER_NAME: FastAPI # 컨테이너 이름
PROGRESS_SLACK_CHANNEL: C07BRCDNBMF # Slack 채널 ID
Expand Down
52 changes: 14 additions & 38 deletions app/model/prompt/graphic_article/2024-07-10.txt
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이제 일별 매출 트렌드를 알 수 있어요 😊
}
}

0 comments on commit be2e538

Please sign in to comment.