Files
more_dots/scripts/sync_sql_gen_prompts.py
T

20 lines
418 B
Python
Raw Normal View History

2026-03-24 18:07:22 +08:00
from pathlib import Path
import sys
PROJECT_ROOT = Path(__file__).resolve().parent.parent
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
from services.integrations.ragflow_sync import RagflowSync
2026-02-26 18:06:17 +08:00
def main():
syncer = RagflowSync()
2026-03-24 18:07:22 +08:00
result = syncer.sync_sql_gen_prompts()
2026-02-26 18:06:17 +08:00
print("SQL 生成提示词同步完成")
2026-03-24 18:07:22 +08:00
print(result)
2026-02-26 18:06:17 +08:00
if __name__ == "__main__":
main()