61 lines
1.8 KiB
JSON
61 lines
1.8 KiB
JSON
[
|
|
{
|
|
"name": "db1",
|
|
"database": "database1",
|
|
"table_name": "documents",
|
|
"id_column": "id",
|
|
"content_column": "content",
|
|
"title_column": "title",
|
|
"metadata_columns": "created_at,updated_at",
|
|
"content_separator": "\n",
|
|
"updated_at_column": "updated_at",
|
|
"comment": "使用 .env 中的默认 MySQL 连接配置(不指定 mysql_host 等字段)"
|
|
},
|
|
{
|
|
"name": "db2",
|
|
"database": "database2",
|
|
"table_name": "articles",
|
|
"id_column": "article_id",
|
|
"content_column": "body",
|
|
"title_column": "title",
|
|
"metadata_columns": "author,category",
|
|
"content_separator": "\n",
|
|
"updated_at_column": null,
|
|
"comment": "使用 .env 中的默认 MySQL 连接配置"
|
|
},
|
|
{
|
|
"name": "db3_remote",
|
|
"database": "database3",
|
|
"table_name": "knowledge_base",
|
|
"id_column": "kb_id",
|
|
"content_column": "text_content",
|
|
"title_column": "title",
|
|
"metadata_columns": null,
|
|
"content_separator": "\n",
|
|
"updated_at_column": null,
|
|
"mysql_host": "192.168.1.100",
|
|
"mysql_port": 3306,
|
|
"mysql_user": "remote_user",
|
|
"mysql_password": "remote_password",
|
|
"mysql_charset": "utf8mb4",
|
|
"comment": "使用独立的 MySQL 连接配置(不同的服务器)"
|
|
},
|
|
{
|
|
"name": "db4_other_server",
|
|
"database": "database4",
|
|
"table_name": "issues",
|
|
"id_column": "id",
|
|
"content_column": "title,content,description",
|
|
"title_column": "title",
|
|
"metadata_columns": "created_at,updated_at",
|
|
"content_separator": "\n",
|
|
"updated_at_column": "updated_at",
|
|
"mysql_host": "10.0.0.50",
|
|
"mysql_port": 3307,
|
|
"mysql_user": "other_user",
|
|
"mysql_password": "other_password",
|
|
"mysql_charset": "utf8mb4",
|
|
"comment": "使用另一个独立的 MySQL 连接配置(不同的服务器和端口)"
|
|
}
|
|
]
|