From 070bb74e58e907e688f36d97107d4cc7defd8af5 Mon Sep 17 00:00:00 2001 From: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:39:02 +0800 Subject: [PATCH] update docs Signed-off-by: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com> --- .../Authentication/grant_privilege.md | 14 +++++---- .../Authentication/revoke_privileges.md | 15 ++++++---- .../CollectionSchema/add_field.md | 8 +++++ .../Collections/create_collection.md | 2 +- .../Management/load_collection.md | 14 +++++++++ .../Partitions/load_partitions.md | 14 +++++++++ .../v2.4.x/MilvusClient/Vector/delete.md | 7 ----- .../v2.4.x/MilvusClient/Vector/search.md | 8 ++--- .../v2.4.x/ORM/Collection/Collection.md | 4 +-- .../pymilvus/v2.4.x/ORM/Collection/load.md | 30 ++++++++++++------- .../pymilvus/v2.4.x/ORM/Collection/search.md | 28 +++++++++++++++-- .../v2.4.x/ORM/CollectionSchema/add_field.md | 8 +++++ .../v2.4.x/ORM/Connections/connect.md | 2 ++ .../pymilvus/v2.4.x/ORM/Partition/load.md | 26 ++++++++++------ .../pymilvus/v2.4.x/ORM/Partition/search.md | 2 +- .../ORM/utility/create_resource_group.md | 4 +-- 16 files changed, 135 insertions(+), 51 deletions(-) diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/grant_privilege.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/grant_privilege.md index 18a14249c..30f76c9d9 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/grant_privilege.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/grant_privilege.md @@ -31,9 +31,11 @@ grant_privilege( Possible values: - - __Global__: System-wide objects, allowing the user to perform actions that affect all collections, users, or system-wide settings. When __object_type__ is set to __Global__, set __object_name__ to the wildcard (__*__), indicating all objects of the specified type. - - __Collection__: Collection-specific objects, allowing the user to perform actions such as creating indexes, loading data, inserting or deleting data, and querying data within a specific collection. - - __User__: Objects related to user management, allowing the user to manage credentials and roles for database users, such as updating user credentials or viewing user details. + - **Global**: System-wide objects, allowing the user to perform actions that affect all collections, users, or system-wide settings. When **object_type** is set to **Global**, set **object_name** to the wildcard (*****), indicating all objects of the specified type. + + - **Collection**: Collection-specific objects, allowing the user to perform actions such as creating indexes, loading data, inserting or deleting data, and querying data within a specific collection. + + - **User**: Objects related to user management, allowing the user to manage credentials and roles for database users, such as updating user credentials or viewing user details. - **privilege** (*str*) - @@ -47,9 +49,9 @@ grant_privilege( **[REQUIRED]** - The name of the object to control access for. For example, if the object type is __Collection__, the object name is the name of a collection. If the object type is __User__, the object name is the name of a database user. + The name of the object to control access for. For example, if the object type is **Collection**, the object name is the name of a collection. If the object type is **User**, the object name is the name of a database user. - When __object_type__ is set to __Global__, set __object_name__ to the wildcard (__*__), indicating all objects of the specified type. For details, refer to the Relevant API column in the table on page [Users and Roles](https://milvus.io/docs/users_and_roles.md). + When **object_type** is set to **Global**, set **object_name** to the wildcard (*****), indicating all objects of the specified type. For details, refer to the Relevant API column in the table on page [Users and Roles](https://milvus.io/docs/users_and_roles.md). - **db_name** (*str*) - @@ -101,7 +103,7 @@ read_only_privileges = [ {"object_type": "Collection", "object_name": "quick_setup", "privilege": "Search"}, # Query permission on all collections {"object_type": "Collection", "object_name": "*", "privilege": "Query"} -] +] # 2. Create a role client.create_role(role_name="read_only") diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/revoke_privileges.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/revoke_privileges.md index 8a9a80ee5..380e2f931 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/revoke_privileges.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Authentication/revoke_privileges.md @@ -27,12 +27,15 @@ revoke_privilege( **[REQUIRED]** - The type of the object from which the privilege is being revoked. + The type of the object from which the privilege is being revoked. Possible values: - - __Global__: System-wide objects, allowing the user to perform actions that affect all collections, users, or system-wide settings. When __object_type__ is set to __Global__, set object_name to the wildcard (__*__), indicating all objects of the specified type. - - __Collection__: Collection-specific objects, allowing the user to perform actions such as creating indexes, loading data, inserting or deleting data, and querying data within a specific collection. - - __User__: Objects related to user management, allowing the user to manage credentials and roles for database users, such as updating user credentials or viewing user details. + + - **Global**: System-wide objects, allowing the user to perform actions that affect all collections, users, or system-wide settings. When **object_type** is set to **Global**, set **object_name** to the wildcard (*****), indicating all objects of the specified type. + + - **Collection**: Collection-specific objects, allowing the user to perform actions such as creating indexes, loading data, inserting or deleting data, and querying data within a specific collection. + + - **User**: Objects related to user management, allowing the user to manage credentials and roles for database users, such as updating user credentials or viewing user details. - **privilege** (*str*) - @@ -46,9 +49,9 @@ revoke_privilege( **[REQUIRED]** - The name of the object to control access for. For example, if the object type is __Collection__, the object name is the name of a collection. If the object type is __User__, the object name is the name of a database user. + The name of the object to control access for. For example, if the object type is **Collection**, the object name is the name of a collection. If the object type is **User**, the object name is the name of a database user. - When __object_type__ is set to __Global__, set __object_name__ to the wildcard (__*__), indicating all objects of the specified type. For details, refer to the Relevant API column in the table on page [Users and Roles](https://milvus.io/docs/users_and_roles.md). + When **object_type** is set to **Global**, set **object_name** to the wildcard (*****), indicating all objects of the specified type. For details, refer to the Relevant API column in the table on page [Users and Roles](https://milvus.io/docs/users_and_roles.md). - **db_name** (*str*) - diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/CollectionSchema/add_field.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/CollectionSchema/add_field.md index bc2e318a8..a384fff6d 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/CollectionSchema/add_field.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/CollectionSchema/add_field.md @@ -116,6 +116,14 @@ add_field( +- **is_clustering_key** (*bool*) - + + Whether the current field serves as the clustering key. Each collection can have one partition key. You can also use the partition key as the clustering key. For details, refer to Clustering Compaction. + +- **mmap_enabled** (*bool*) - + + Whether Milvus maps the field data into memory instead of fully loading it. For details settings, refer to MMap-enabled Data Storage. + **RETURN TYPE:** *[CollectionSchema](CollectionSchema.md)* diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Collections/create_collection.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Collections/create_collection.md index 127e94d8f..ca6093d7d 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Collections/create_collection.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Collections/create_collection.md @@ -72,7 +72,7 @@ create_collection( Whether the primary field automatically increments upon data insertions into this collection. - The value defaults to **False**. Setting this to **True** makes the primary field automatically increment. + The value defaults to **False**. Setting this to **True** makes the primary field automatically increment. In this case, the primary field should not be included in the data to insert to avoid errors. The auto-generated IDs have a fixed length and cannot be altered. This parameter is designed for the quick setup of a collection and will be ignored if **schema** is not **None**. diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Management/load_collection.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Management/load_collection.md index 1322b4ccf..eb8a8ec56 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Management/load_collection.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Management/load_collection.md @@ -37,6 +37,20 @@ load_collection( +- **resource_groups** (*str[]*) - + + The target resource groups of this operation. + +- **load_fields** (*str[]*) - + + The names of the fields to load. + + If this parameter is left unspecified, Milvus loads all vector field indexes plus all scalar field data into memory. Setting this parameter makes Milvus load the data of the specified fields into memory, reducing memory usage and improving search performance. + +- **skip_load_dynamic_field** (*bool*) - + + Setting this to true makes Milvus skip loading the dynamic field, making it unavailable for filtering conditions and output fields for searches and queries. + - **timeout** (*float* | *None*) - The timeout duration for this operation. diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Partitions/load_partitions.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Partitions/load_partitions.md index 3f854c5e4..120fcec9b 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Partitions/load_partitions.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Partitions/load_partitions.md @@ -26,6 +26,20 @@ load_partitions( A list of the names of the partitions to load. +- **resource_groups** (*str[]*) - + + The target resource groups of this operation. + +- **load_fields** (*str[]*) - + + The names of the fields to load. + + If this parameter is left unspecified, Milvus loads all vector field indexes plus all scalar field data into memory. Setting this parameter makes Milvus load the data of the specified fields into memory, reducing memory usage and improving search performance. + +- **skip_load_dynamic_field** (*bool*) - + + Setting this to true makes Milvus skip loading the dynamic field, making it unavailable for filtering conditions and output fields for searches and queries. + - **timeout** (*float* | *None*) The timeout duration for this operation. Setting this to **None** indicates that this operation timeouts when any response arrives or any error occurs. diff --git a/API_Reference/pymilvus/v2.4.x/MilvusClient/Vector/delete.md b/API_Reference/pymilvus/v2.4.x/MilvusClient/Vector/delete.md index 05a224457..e7a71d4f3 100644 --- a/API_Reference/pymilvus/v2.4.x/MilvusClient/Vector/delete.md +++ b/API_Reference/pymilvus/v2.4.x/MilvusClient/Vector/delete.md @@ -45,19 +45,12 @@ delete( You can set this parameter to an empty string to skip scalar filtering. To build a scalar filtering condition, refer to [Boolean Expression Rules](https://milvus.io/docs/boolean.md). -<<<<<<< Updated upstream -
notes
When using filter expressions to delete entities, ensure the collection has been loaded. Otherwise, Milvus will return an error.
->>>>>>> Stashed changeswhat is sharding?
Sharding refers to distributing write operations to different nodes to make the most of the parallel computing potential of a Milvus cluster for writing data.
-By default, a collection contains two shards.
+By default, a collection contains one shard.
what is a resource group?
- A specific set of resource groups into which the current collection is to be loaded. +A resource group can hold several or all of the query nodes in a Milvus instance.
+Setting this parameter for this operation makes Milvus loads the current collection to the query nodes in the specified resource groups.
+ +what is a resource group?
+ If this parameter is left unspecified, Milvus loads all vector field indexes plus all scalar field data into memory. Setting this parameter makes Milvus load the data of the specified fields into memory, reducing memory usage and improving search performance. -A resource group can hold several or all of the query nodes in a Milvus instance.
-Setting this parameter for this operation makes Milvus loads the current collection to the query nodes in the specified resource groups.
+- **skip_load_dynamic_field** (*bool*) - -what is a resource group?
-what is a resource group?
+A resource group can hold several or all of the query nodes in a Milvus instance.
+Setting this parameter for this operation makes Milvus loads the current collection to the query nodes in the specified resource groups.
-A resource group can hold several or all of the query nodes in a Milvus instance.
-Setting this parameter for this operation makes Milvus loads the current collection to the query nodes in the specified resource groups.
+what is a resource group?
A resource group can hold several or all of the query nodes in a Milvus instance. When you load a collection by calling load(), Milvus loads the data of the collection into certain query nodes.
-There is a default resource group named __default_resource_group available in every Milvus instance that holds all its query nodes.
-Use describe_resource_group() to check the actual number. If there are multiple query nodes available, consider creating resource groups and distributing the query nodes among them.
+There is a default resource group named _defaultresource_group available in every Milvus instance that holds all its query nodes.
+Use describeresourcegroup() to check the actual number. If there are multiple query nodes available, consider creating resource groups and distributing the query nodes among them.