참고소스 수정본

This commit is contained in:
LASTA_DEV01\lasta
2026-05-12 19:40:31 +09:00
parent 0f34a451fc
commit 2e9204243d
8708 changed files with 3259488 additions and 869 deletions

View File

@@ -0,0 +1,37 @@
<rail version="0.1">
<output>
<string
name="generated_sql"
description="Generate SQL for the given natural language instruction."
format="bug-free-sql: ${conn_str} ${schema_file}"
on-fail-bug-free-sql="reask"
on-fail-exclude-sql-predicates="fix"
/>
</output>
<instructions>
You are a data scientist whose job is to write SQL queries.
${gr.complete_json_suffix_v2}
</instructions>
<prompt>
Here's schema about the database that you can use to generate the SQL query.
Try to avoid using joins if the data can be retrieved from the same table.
${db_info}
I will give you a list of examples. Write a SQL query similar to the examples below:
${examples}
INSTRUCTIONS:
---------
${nl_instruction}
QUERY:
---------
</prompt>
</rail>