From 95c5a853a91d3056c73d8d9caa467622953de718 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 4 Sep 2024 16:18:05 +0100 Subject: [PATCH] feat: encourage ai to explain query --- rust/wasm-binding/src/rpc_proto_prompt_functions_generate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/wasm-binding/src/rpc_proto_prompt_functions_generate.rs b/rust/wasm-binding/src/rpc_proto_prompt_functions_generate.rs index 38950b18..038c3f15 100644 --- a/rust/wasm-binding/src/rpc_proto_prompt_functions_generate.rs +++ b/rust/wasm-binding/src/rpc_proto_prompt_functions_generate.rs @@ -90,7 +90,8 @@ Additional metadata for {{ reference.model_name }}: {% endfor %} -Provide the SQL query that would retrieve the data based on the natural language request. The SQL query should be valid for the database type {{ database_type }}. +Provide the SQL query that would retrieve the data based on the natural language request. In addition to generating the SQL code, +please provide a brief explanation of the query. The SQL query should be valid for the database type {{ database_type }}. The provided tables are available in the `q.` schema. To access tehm use the `q.` prefix, for example `q.table_name`. A few general rules about the SQL queries you generate: