init
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
from services.ragflow_sync import RagflowSync
|
||||
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
|
||||
|
||||
|
||||
def main():
|
||||
syncer = RagflowSync()
|
||||
syncer.sync_sql_gen_prompts()
|
||||
result = syncer.sync_sql_gen_prompts()
|
||||
print("SQL 生成提示词同步完成")
|
||||
print(result)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user