community:support additional Azure Search Options (#24134)

- **Description:** Support additional kwargs options for the Azure
Search client (Described here
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#configurations)
    - **Issue:** N/A
    - **Dependencies:** No additional Dependencies

---------
This commit is contained in:
Matt
2024-07-11 11:22:36 -07:00
committed by GitHub
parent 122e80e04d
commit 8327925ab7
3 changed files with 45 additions and 2 deletions

View File

@@ -169,6 +169,23 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Specify additional properties for the Azure client such as the following https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#configurations\n",
"vector_store: AzureSearch = AzureSearch(\n",
" azure_search_endpoint=vector_store_address,\n",
" azure_search_key=vector_store_password,\n",
" index_name=index_name,\n",
" embedding_function=embeddings.embed_query,\n",
" # Configure max retries for the Azure client\n",
" additional_search_client_options={\"retry_total\": 4},\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},