Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wren-ai-service): improve ai service #1068

Merged
merged 8 commits into from
Dec 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
return empty schema if no sample data for chart
  • Loading branch information
cyyeh committed Dec 26, 2024
commit fa90965d729b7cabb4e0d52831f69d9f8fafdba6
3 changes: 2 additions & 1 deletion wren-ai-service/src/pipelines/generation/utils/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
- Please generate vega-lite schema using v5 version, which is https://vega.github.io/schema/vega-lite/v5.json
- Chart types: Bar chart, Line chart, Area chart, Pie chart, Stacked bar chart, Grouped bar chart
- You can only use the chart types provided in the instructions
- If you think the data is not suitable for visualization, you can return an empty string for the schema
- If the sample data is not suitable for visualization, you must return an empty string for the schema
- If the sample data is empty, you must return an empty string for the schema
- The language for the chart and reasoning must be the same language provided by the user
- Please use the current time provided by the user to generate the chart
- In order to generate the grouped bar chart, you need to follow the given instructions:
Expand Down