init
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
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))
|
||||
|
||||
|
||||
def main():
|
||||
from services.ragflow_sync import RagflowSync
|
||||
from services.integrations.ragflow_sync import RagflowSync
|
||||
syncer = RagflowSync()
|
||||
syncer.sync_table_retrieval()
|
||||
result = syncer.sync_table_retrieval()
|
||||
print("表名检索模板同步完成")
|
||||
print(result)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user