init
This commit is contained in:
@@ -32,17 +32,13 @@ model_section = gpt-4o
|
||||
|
||||
[ragflow]
|
||||
url = http://10.122.176.97:21020
|
||||
dataset_ids = f5b8b854d63a11f083230242c0a8e006
|
||||
document_ids = 819cf100f52611f0a7fa0242c0a8e006
|
||||
api_key = ragflow-xxxxx
|
||||
retrieval = /api/v1/retrieval
|
||||
upload = /api/v1/documents
|
||||
cache_ttl = 600
|
||||
|
||||
[redis]
|
||||
enabled = false
|
||||
url = redis://localhost:6379/0
|
||||
db = 0
|
||||
# 上传模式:overwrite(覆盖更新)或 append(追加)
|
||||
upload_mode = overwrite
|
||||
table_retrieval_dataset_id =
|
||||
sql_gen_dataset_id =
|
||||
|
||||
[nacos]
|
||||
# 是否启用 Nacos 注册
|
||||
|
||||
@@ -4,6 +4,13 @@ system:
|
||||
sql_generator: |
|
||||
You are an assistant that converts user intent into SQL.
|
||||
Ensure the SQL is correct, safe, and syntactically valid.
|
||||
sql_mysql_select_only: |
|
||||
You are an expert SQL generator.
|
||||
Only output a single MySQL SELECT statement.
|
||||
Do not use LIMIT.
|
||||
Do not output any other text.
|
||||
Use the following table prompt JSON to generate SQL:
|
||||
{table_prompt_json}
|
||||
|
||||
user:
|
||||
default: |
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
本目录存放用于 RAGFlow 匹配的模板配置(JSON)。
|
||||
|
||||
约定:每个 JSON 文件对应一个表名(key),包含模板列表(value)。
|
||||
示例文件:orders.json、customers.json。
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"table": "example_table",
|
||||
"templates": [
|
||||
"example_table created in {date}",
|
||||
"count of records in example_table",
|
||||
"example_table where status = {status}"
|
||||
]
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
本目录存放业务表模型元数据提示词(JSON 格式)。
|
||||
|
||||
约定:每个 JSON 文件对应一个数据库表模型,描述表与字段元数据。
|
||||
示例文件:order_metadata.json、customer_metadata.json 等。
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"table": "example_table",
|
||||
"description": "示例表模型元数据提示词",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int",
|
||||
"description": "主键"
|
||||
},
|
||||
{
|
||||
"name": "created_at",
|
||||
"type": "datetime",
|
||||
"description": "创建时间"
|
||||
}
|
||||
],
|
||||
"relationships": [],
|
||||
"notes": [
|
||||
"字段含义与业务规则可在此补充"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
本目录存放用于 RAGFlow 匹配的表名检索提示词(JSON)。
|
||||
|
||||
约定:使用单一 JSON 文件维护多个表名及其模板列表。
|
||||
示例文件:tables.json。
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"tables": {
|
||||
"apbo_eta_ful": [
|
||||
"SO ETA INFO",
|
||||
"BO list",
|
||||
"CC",
|
||||
"Commodity Code",
|
||||
"BO QTY",
|
||||
"open order",
|
||||
"BO status",
|
||||
"BO report",
|
||||
"model",
|
||||
"MTM SN",
|
||||
"backlog",
|
||||
"Premier",
|
||||
"SN machine_sn",
|
||||
"work order information",
|
||||
"recovery ETA",
|
||||
"history order",
|
||||
"Warranty type"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user