Files
more_dots/scripts/sync_ragflow_templates.py
T

20 lines
421 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))
2026-02-26 13:43:44 +08:00
def main():
2026-03-24 18:07:22 +08:00
from services.integrations.ragflow_sync import RagflowSync
2026-02-26 18:06:17 +08:00
syncer = RagflowSync()
2026-03-24 18:07:22 +08:00
result = syncer.sync_table_retrieval()
2026-02-26 18:06:17 +08:00
print("表名检索模板同步完成")
2026-03-24 18:07:22 +08:00
print(result)
2026-02-26 13:43:44 +08:00
if __name__ == "__main__":
main()