graphrag-accelerator/backend/run-indexing-job.py
2024-06-26 15:45:06 -04:00

19 lines
435 B
Python

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import argparse
import asyncio
from src import main # noqa: F401
from src.api.index import _start_indexing_pipeline
parser = argparse.ArgumentParser(description="Kickoff indexing job.")
parser.add_argument("-i", "--index-name", required=True)
args = parser.parse_args()
asyncio.run(
_start_indexing_pipeline(
index_name=args.index_name,
)
)