diff --git a/tutorial/build_index.py b/tutorial/build_index.py index 5343fc1..43a1371 100644 --- a/tutorial/build_index.py +++ b/tutorial/build_index.py @@ -41,7 +41,7 @@ print(f"Data directory '{data_directory}' does not exist.") exit() -index_name = "tutorial-index" # your desired index name +index_name = os.getenv("AZUREAI_SEARCH_INDEX_NAME", "tutorial-index"); # your desired index name index_path = build_index( name=index_name, # name of your index vector_store="azure_ai_search", # the type of vector store - in this case it is Azure AI Search. Users can also use "azure_cognitive search"