BUGFIX: Use embedding key in azure_cosmos_db index creation (#13919)

Description: Implement embedding key parametrisation
Issue: https://github.com/langchain-ai/langchain/issues/13918
Dependencies: None
Tag maintainer: @hwchase17 @izzymsft
Twitter handle:@MaddogoS
This commit is contained in:
Enric Soler Rastrollo
2023-11-27 21:51:08 +01:00
committed by GitHub
parent ac67422a3d
commit c156d0281a

View File

@@ -221,7 +221,7 @@ class AzureCosmosDBVectorSearch(VectorStore):
"indexes": [
{
"name": self._index_name,
"key": {"vectorContent": "cosmosSearch"},
"key": {self._embedding_key: "cosmosSearch"},
"cosmosSearchOptions": {
"kind": "vector-ivf",
"numLists": num_lists,