Skip to content

Commit 0de85cf

Browse files
authored
Milvus destination connector: Zilliz Cloud - use username and password for auth (token auth not supported) (#725)
1 parent 097e510 commit 0de85cf

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

snippets/general-shared-text/kdbai.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"type": "flat",
4949
"params": {
5050
"dims": 3072,
51-
"metric": "L2"
51+
"metric": "CS"
5252
},
5353
"column": "embeddings"
5454
}

snippets/general-shared-text/milvus.mdx

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The following video shows how to fulfill the minimum set of requirements for Mil
88
<iframe
99
width="560"
1010
height="315"
11-
src="https://www.youtube.com/embed/ASEmYryJpkU"
11+
src="https://www.youtube.com/embed/vwWudGvBEKQ"
1212
title="YouTube video player"
1313
frameborder="0"
1414
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
@@ -18,20 +18,36 @@ The following video shows how to fulfill the minimum set of requirements for Mil
1818
- A [Zilliz Cloud account](https://cloud.zilliz.com/signup).
1919
- A [Zilliz Cloud cluster](https://docs.zilliz.com/docs/create-cluster).
2020
- The URI of the cluster, also known as the cluster's _public endpoint_, which takes a format such as
21-
`https://<cluster-id>.<cluster-type>.<cloud-provider>-<region>.cloud.zilliz.com`.
22-
[Get the cluster's public endpoint](https://docs.zilliz.com/docs/manage-cluster#connect-to-cluster).
23-
- The token to access the cluster. [Get the cluster's token](https://docs.zilliz.com/docs/manage-cluster#connect-to-cluster).
21+
`https://<cluster-id>.<cluster-type>.<cloud-provider>-<region>.cloud.zilliz.com`. To get this public endpoint value, do the following:
22+
23+
1. After you sign in to your Zilliz Cloud account, on the sidebar, in the list of available projects, select the project that contains the cluster.
24+
2. On the sidebar, click **Clusters**.
25+
3. Click the tile for the cluster.
26+
4. On the **Cluster Details** tab, on the **Connect** subtab, copy the **Public Endpoint** value.
27+
28+
- The username and password to access the cluster, as follows:
29+
30+
1. After you sign in to your Zilliz Cloud account, on the sidebar, in the list of available projects, select the project that contains the cluster.
31+
2. On the sidebar, click **Clusters**.
32+
3. Click the tile for the cluster.
33+
4. On the **Users** tab, copy the name of the user.
34+
5. Next to the user's name, under **Actions**, click the ellipsis (three dots) icon, and then click **Reset Password**.
35+
6. Enter a new password for the user, and then click **Confirm**. Copy this new password.
36+
2437
- The name of the [database](https://docs.zilliz.com/docs/database#create-database) in the instance.
2538
- The name of the [collection](https://docs.zilliz.com/docs/manage-collections-console#create-collection) in the database.
2639

2740
The collection must have a a defined schema before Unstructured can write to the collection. The minimum viable
2841
schema for Unstructured contains only the fields `element_id`, `embeddings`, and `record_id`, as follows:
2942

30-
| Field Name | Field Type | Max Length | Dimension | Index | Metric Type |
31-
|---|---|---|---|---|--|
32-
| `element_id` (primary key field) | **VARCHAR** | `200` | -- | -- | -- |
33-
| `embeddings` (vector field) | **FLOAT_VECTOR** | -- | `3072` | Yes (Checked) | **Cosine** |
34-
| `record_id` | **VARCHAR** | `200` | -- | -- | -- |
43+
| Field Name | Field Type | Max Length | Dimension |
44+
|---|---|---|---|
45+
| `element_id` (primary key field) | **VARCHAR** | `200` | -- |
46+
| `embeddings` (vector field) | **FLOAT_VECTOR** | -- | `3072` |
47+
| `record_id` | **VARCHAR** | `200` | -- |
48+
49+
In the **Create Index** area for the collection, next to **Vector Fields**, click **Edit Index**. Make sure that for the
50+
`embeddings` field, the **Field Type** is set to **FLOAT_VECTOR** and the **Metric Type** is set to **Cosine**.
3551

3652
- For Milvus on IBM watsonx.data, you will need:
3753

@@ -122,7 +138,7 @@ collection = Collection(
122138
)
123139

124140
index_params = {
125-
"metric_type": "L2",
141+
"metric_type": "COSINE",
126142
"index_type": "IVF_FLAT",
127143
"params": {"nlist": 1024}
128144
}

0 commit comments

Comments
 (0)