mirror of
				https://github.com/Azure-Samples/graphrag-accelerator.git
				synced 2025-10-30 18:18:13 +00:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			435 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			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, | ||
|  |     ) | ||
|  | ) |