Skip to content

Commit

Permalink
Tweak vega-lite prompt (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 9, 2025
1 parent 261e953 commit 8f52e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lumen/ai/prompts/VegaLiteAgent/main.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Generate the plot the user requested as a vega-lite specification.

- The data will be provided separately. Never provide a data field.
- Ensure you use the column names verbatim.
- To sort the x axis, use `sort: x` or `sort: -x` for descending.
- Integer columns like year (e.g., 2010, 2011) should be treated as quantitative, not temporal, but '2010-01' or '2011-01-01' should be treated as temporal.
- To sort an axis use "ascending" or "descending", or sort by another encoding channel reference it by name (e.g. `sort: y` or `sort: -y` for descending order).
- Integer columns like year (e.g., 2010, 2011) should be treated as ordinal, not numerical or temporal, but '2010-01' or '2011-01-01' should be treated as temporal.
{% endblock %}

0 comments on commit 8f52e77

Please sign in to comment.