mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 14:05:16 +00:00
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:
parent
ac67422a3d
commit
c156d0281a
@ -221,7 +221,7 @@ class AzureCosmosDBVectorSearch(VectorStore):
|
|||||||
"indexes": [
|
"indexes": [
|
||||||
{
|
{
|
||||||
"name": self._index_name,
|
"name": self._index_name,
|
||||||
"key": {"vectorContent": "cosmosSearch"},
|
"key": {self._embedding_key: "cosmosSearch"},
|
||||||
"cosmosSearchOptions": {
|
"cosmosSearchOptions": {
|
||||||
"kind": "vector-ivf",
|
"kind": "vector-ivf",
|
||||||
"numLists": num_lists,
|
"numLists": num_lists,
|
||||||
|
Loading…
Reference in New Issue
Block a user