Milvus is an open-source vector database for similarity search over embeddings, used for semantic search, retrieval-augmented generation (RAG) and recommendations. Zilliz Cloud is the managed Milvus service.
Dawiso reads the schema of your Milvus deployment through the Milvus REST API: databases, collections, their fields, partitions and indexes, and the functions that compute one field from another. Dawiso doesn’t query or search your collections, so entities and vectors never leave Milvus.
Default hierarchy
The chart below shows the organizational structure of Milvus objects. Objects are represented in green and folders are in yellow. Folders group the objects of one type and are hidden when they are empty.
A Sub-field is a field of a struct field. It has the Milvus Field object type, like any other field.
Object types
Database
Maps to the Milvus Database object type.
| Source attribute | Target attribute in Dawiso |
|---|---|
| dbName | Name |
| Number of collections the Dawiso user can see | Collection count |
properties, e.g. database.max.collections | Properties |
| dbID | Database ID |
Milvus has no system databases. The default database is ingested like any other database.
Collection
Maps to the Milvus Collection object type.
| Source attribute | Target attribute in Dawiso |
|---|---|
| collectionName | Name |
| description | Scanned Description |
| collectionID | Collection ID |
| rowCount (collection statistics) | Row count |
| shardsNum | Shards |
| partitionsNum | Partitions |
consistencyLevel (Strong, Bounded, Session, Eventually, Customized) | Consistency level |
| enableDynamicField | Dynamic field |
| autoId of the primary field | Auto ID |
Load state (LoadStateLoaded, LoadStateNotLoad, LoadStateLoading) | Load state |
collection.ttl.seconds property | TTL (seconds) |
| aliases, comma-separated | Aliases |
| Number of top-level fields (a struct field counts once) | Field count |
| functions: name, type, input field, output field and parameters | Functions |
All collection properties, e.g. mmap.enabled, timezone | Properties |
| externalSource (Milvus 3.0 external collections) | External source |
| externalSpec (Milvus 3.0 external collections) | External source specification |
- Row count is approximate. Milvus counts the rows of its stored segments: deleted entities are counted until Milvus compacts the segment, and entities inserted shortly before the ingestion may not be counted yet. Expect the value to change between ingestions even when the schema doesn’t.
- Load state shows whether the collection is loaded into memory for search. Dawiso never loads or releases a collection, and released collections are ingested the same way.
- In Functions, a parameter whose name contains a secret word is shown as
***. The words aresecret,password,passwd,pwd,token,credential,credentials,auth,authorization,apikey,accesskey,privatekeyandsecretkey, and the word pairsapi_key,access_key,private_key,secret_key,client_keyandaccount_key(also written in camelCase, such asapiKey). Only whole words count, so a parameter such asmax_tokensis kept. - In External source specification, Milvus itself masks the access keys of the external storage. Dawiso also replaces every other storage setting with
***, exceptcloud_provider,storage_type,endpoint_url,region,bucket_name,use_ssl,use_virtual_host,use_iam,anonymousandload_frequency. - The Milvus REST API doesn’t return when a collection was created, so Dawiso has no creation date for it.
Field
Maps to the Milvus Field object type. A struct field (ArrayOfStruct, Milvus 2.6 and later) is ingested as a field, and each of its sub-fields as a field under it.
| Source attribute | Target attribute in Dawiso |
|---|---|
| name | Name |
| description | Scanned Description |
type, e.g. Int64, VarChar, JSON, Array, FloatVector, SparseFloatVector, ArrayOfStruct | Data type |
| elementType (the element type of an array, or the declared type of a struct sub-field) | Element type |
dim parameter (vector fields) | Dimension |
max_length parameter (VarChar) | Max length |
max_capacity parameter (arrays and struct sub-fields) | Max capacity |
| primaryKey | Primary key |
| autoId | Auto ID |
| partitionKey | Partition key |
| clusteringKey | Clustering key |
| nullable | Nullable |
| defaultValue | Default value |
| Position in the schema | Ordinal position |
| id | Field ID |
| isFunctionOutput (the field is computed by a collection function) | Function output |
| All type parameters, e.g. analyzer settings | Type parameters |
| elementNullable (Milvus 3.0) | Nullable elements |
| typeSchema (element types of a nested array, Milvus 3.0) | Nested type schema |
The field name, or struct[sub-field] for a struct sub-field | Field path |
| externalField (the source column of a field in an external collection, Milvus 3.0) | External field |
- Milvus stores the sub-fields of a struct field as arrays, so a sub-field shows the data type
ArrayorArrayOfVector, and Element type shows the type it was declared with. On a sub-field, Nullable is the nullability of the struct field, and Nullable elements is the sub-field’s own. - A struct field has no primary key, auto ID, partition key or clustering key setting, so these attributes are empty on it.
- The dynamic field (
$meta) isn’t ingested, because its keys have no schema. Dynamic field on the collection shows whether it’s enabled.
Partition
Maps to the Milvus Partition object type.
| Source attribute | Target attribute in Dawiso |
|---|---|
| Partition name | Name |
| rowCount (partition statistics) | Row count |
| The collection uses a partition key | Partition-key mode |
- Every collection has the partition
_default. A collection with a partition key has the partitions_default_0to_default_N-1that Milvus manages itself (16 by default), and they’re ingested like any other partition. - Row count is approximate, as for collections. You can turn the partition row counts off on the data source, see Create Milvus data source.
Index
Maps to the Milvus Index object type.
| Source attribute | Target attribute in Dawiso |
|---|---|
| indexName | Name |
fieldName (struct[sub-field] for an index on a struct sub-field) | Indexed field |
indexType, e.g. HNSW, AUTOINDEX, INVERTED, SPARSE_INVERTED_INDEX | Index type |
metricType, e.g. COSINE, L2, IP, BM25 (empty for scalar indexes) | Metric type |
indexState, e.g. Finished, InProgress, Failed | Index state |
| indexedRows | Indexed rows |
| totalRows | Total rows |
| pendingRows | Pending rows |
| indexParams, including the build parameters | Index parameters |
| failReason | Failure reason |
Relations
A collection function computes one field of a collection from another field. For every function in a collection’s schema, Dawiso creates a lineage relation from the function’s input field to its output field. Milvus accepts the following functions in a schema:
| Function | Milvus version | Input field | Output field |
|---|---|---|---|
| BM25 | 2.5 and later | VarChar with an analyzer (2.6 and later also Text) | SparseFloatVector |
| TextEmbedding | 2.6 and later | VarChar | FloatVector or Int8Vector |
| MinHash | 3.0 and later | VarChar or Text | BinaryVector |
Both ends of the relation are fields of the same collection, and the data lineage diagram draws the relation inside the collection. Milvus metadata has no lineage between collections, for example from the pipeline that loads a collection.
Limitations
- Data isn’t read. Dawiso doesn’t query or search collections. Entities, vectors and the keys of the dynamic field aren’t ingested.
- Not ingested as objects: aliases (they’re listed in the collection’s Aliases), users, roles and privileges, resource groups and snapshots.
- No link to Milvus. Objects have no link that opens them in Milvus or in the Zilliz Cloud console, because neither has a stable web address for a collection that Dawiso could build from the metadata.
- Milvus Lite isn’t supported. It runs inside a Python process and has no network endpoint that Dawiso could connect to.
- Names are case-sensitive in Milvus. Two collections whose names differ only in upper and lower case, such as
Usersandusers, are ingested as two objects. - Long names are shortened. Names longer than 200 characters are cut to 200 characters in Dawiso. Milvus allows up to 255 characters by default.