feat:初始化工程
This commit is contained in:
18
prompt/sql.py
Normal file
18
prompt/sql.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from langchain_core.prompts import PromptTemplate
|
||||
|
||||
SQL_PROMPT = PromptTemplate.from_template(
|
||||
"""
|
||||
你是一个 MySQL 专家。
|
||||
请根据用户问题生成一条可执行的 MySQL 查询语句。
|
||||
只返回 SQL,不要解释,不要加 ```。
|
||||
|
||||
数据库结构:
|
||||
{schema}
|
||||
|
||||
数据库补充:
|
||||
{option}
|
||||
|
||||
用户问题:
|
||||
{question}
|
||||
"""
|
||||
)
|
||||
Reference in New Issue
Block a user