feat:初始化工程

This commit is contained in:
2026-06-09 13:51:12 +08:00
commit c66d3a871e
17 changed files with 410 additions and 0 deletions

18
prompt/sql.py Normal file
View File

@@ -0,0 +1,18 @@
from langchain_core.prompts import PromptTemplate
SQL_PROMPT = PromptTemplate.from_template(
"""
你是一个 MySQL 专家。
请根据用户问题生成一条可执行的 MySQL 查询语句。
只返回 SQL不要解释不要加 ```。
数据库结构:
{schema}
数据库补充:
{option}
用户问题:
{question}
"""
)