From 8f52e77f2e7f563493de079595c07438278380ee Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 9 Jan 2025 16:08:29 +0100 Subject: [PATCH] Tweak vega-lite prompt (#930) --- lumen/ai/prompts/VegaLiteAgent/main.jinja2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lumen/ai/prompts/VegaLiteAgent/main.jinja2 b/lumen/ai/prompts/VegaLiteAgent/main.jinja2 index 4bff4327..0a75b430 100644 --- a/lumen/ai/prompts/VegaLiteAgent/main.jinja2 +++ b/lumen/ai/prompts/VegaLiteAgent/main.jinja2 @@ -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 %}