You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c5efecd
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Support token, uri and db_name in the Milvus online store
The Milvus client was always built from host:port with a
username:password token, so Zilliz Cloud API keys could not be used
and every collection landed in the default database.
Adds three optional config fields:
- token: an API key or username:password; takes precedence over
username/password.
- uri: a full endpoint; takes precedence over host/port (and over a
Milvus Lite path).
- db_name: the Milvus database to use.
Existing configurations build exactly the same client arguments.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Simon Hearne <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/online-stores/milvus.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,14 +58,36 @@ online_store:
58
58
```
59
59
{% endcode %}
60
60
61
+
Connecting to [Zilliz Cloud](https://zilliz.com/cloud) (managed Milvus) with an API key.
62
+
Read the token from an environment variable rather than committing it:
63
+
64
+
{% code title="feature_store.yaml" %}
65
+
```yaml
66
+
project: my_feature_repo
67
+
registry: data/registry.db
68
+
provider: local
69
+
online_store:
70
+
type: milvus
71
+
uri: "https://<your-cluster-endpoint>"# Public Endpoint from the Zilliz Cloud console
72
+
token: ${ZILLIZ_TOKEN} # pragma: allowlist secret
73
+
db_name: "default"
74
+
embedding_dim: 768
75
+
index_type: "AUTOINDEX"
76
+
metric_type: "COSINE"
77
+
```
78
+
{% endcode %}
79
+
61
80
## Configuration options
62
81
63
82
| Option | Default | Description |
64
83
|:-------|:--------|:------------|
65
84
| `path` | `""` | Path to a Milvus Lite database file. Used when `provider: local` and `path` is set. |
66
85
| `host` | `http://localhost` | Milvus server host, including the scheme. |
67
86
| `port` | `19530` | Milvus server port. |
87
+
| `uri` | unset | Full endpoint, e.g. `https://<cluster>.zillizcloud.com:19530`. Takes precedence over `host`/`port`, and over `path`. |
68
88
| `username` / `password` | `""` | Credentials, sent as the token `username:password`. |
89
+
| `token` | unset | API key or `username:password`. Takes precedence over `username`/`password`. |
90
+
| `db_name` | unset | Milvus database to use. The database must already exist. Defaults to the server's `default` database. |
69
91
| `embedding_dim` | `128` | Dimension of vector fields. |
70
92
| `index_type` | `FLAT` | Index type for vector fields with `vector_index=True`. |
71
93
| `metric_type` | `COSINE` | Default metric when a field does not set `vector_search_metric`. |
0 commit comments