Skip to content

The agent engineering platform.

docs(zilliz): connection_args add token description for serverless cl… (#7810)

satorioh259a4099988a
diff --git a/docs/extras/modules/data_connection/vectorstores/integrations/zilliz.ipynb b/docs/extras/modules/data_connection/vectorstores/integrations/zilliz.ipynb
index 62c214c98d..1b436d0233 100644
--- a/docs/extras/modules/data_connection/vectorstores/integrations/zilliz.ipynb
+++ b/docs/extras/modules/data_connection/vectorstores/integrations/zilliz.ipynb
@@ -65,7 +65,8 @@
"# replace\n",
"ZILLIZ_CLOUD_URI = \"\" # example: \"https://in01-17f69c292d4a5sa.aws-us-west-2.vectordb.zillizcloud.com:19536\"\n",
"ZILLIZ_CLOUD_USERNAME = \"\" # example: \"username\"\n",
- "ZILLIZ_CLOUD_PASSWORD = \"\" # example: \"*********\""
+ "ZILLIZ_CLOUD_PASSWORD = \"\" # example: \"*********\"\n",
+ "ZILLIZ_CLOUD_API_KEY = \"\" # example: \"*********\" (for serverless clusters which can be used as replacements for user and password)"
]
},
{
@@ -112,6 +113,7 @@
" \"uri\": ZILLIZ_CLOUD_URI,\n",
" \"user\": ZILLIZ_CLOUD_USERNAME,\n",
" \"password\": ZILLIZ_CLOUD_PASSWORD,\n",
+ " # \"token\": ZILLIZ_CLOUD_API_KEY, # API key, for serverless clusters which can be used as replacements for user and password\n",
" \"secure\": True,\n",
" },\n",
")"
@@ -174,7 +176,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.9.12"
+ "version": "3.11.3"
}
},
"nbformat": 4,
diff --git a/langchain/vectorstores/zilliz.py b/langchain/vectorstores/zilliz.py
index 38de8b96a6..835a03a74a 100644
--- a/langchain/vectorstores/zilliz.py
+++ b/langchain/vectorstores/zilliz.py
@@ -50,6 +50,8 @@ class Zilliz(Milvus):
password are provided, we will add related header in every RPC call.
password (str): Required when user is provided. The password
corresponding to the user.
+ token (str): API key, for serverless clusters which can be used as
+ replacements for user and password.
secure (bool): Default is false. If set to true, tls will be enabled.
client_key_path (str): If use tls two-way authentication, need to
write the client.key path.
@@ -76,6 +78,7 @@ class Zilliz(Milvus):
"uri": "https://in03-ba4234asae.api.gcp-us-west1.zillizcloud.com",
"user": "temp",
"password": "temp",
+ "token": "temp", # API key as replacements for user and password
"secure": True
}
drop_old: True,