unstale

pypi / pymilvus

pymilvus

What changed in pymilvus 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

20 breaking3 security2 deprecations66 new APIs and options4 performance21 behavior and defaults1 tooling67 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

pymilvus 353 changes

Breaking changes 5

Security 1

  • Uploads use safer per-upload options, lower default concurrency, byte-level progress, and request-local concurrent-upload state.

    3.0.1release notes

New APIs and options 24

  • Abort a two-phase bulk import job submitted with auto_commit=False.

    3.0.3release notes

  • Bulk import helpers accept custom HTTP headers, including Idempotency-Key.

    3.0.3release notes

  • Commit a two-phase bulk import job submitted with auto_commit=False.

    3.0.3release notes

  • Replace individual Struct Array elements or sub-field values with FieldOp.path_replace().

    3.0.3release notes

  • Both clients support function chains; each ANN request can run its own chain, and a top-level chain can merge and rerank results.

    3.0.3release notes

  • Synchronous and asynchronous clients support nullable scalar and vector sub-fields and nested scalar arrays with nullable elements in Struct Arrays.

    3.0.3release notes

  • MilvusClient and AsyncMilvusClient support principal-tag management for deployments that support row-level security.

    3.0.3release notes

  • Clients can pass an RLS principal with reads, writes, and imports.

    3.0.3release notes

  • MilvusClient and AsyncMilvusClient support row-policy management for deployments that support row-level security.

    3.0.3release notes

  • Both clients can add or drop Struct Array sub-fields on existing collections.

    3.0.3release notes

  • Adds builders for Bloom filters and Roaring bitmaps for membership filtering.

    3.0.2release notes

  • Adds APIs for observing the compaction lifecycle.

    3.0.2release notes

  • Adds scalable upload policies for Volume.

    3.0.2release notes

  • Adds a method for altering collection schemas.

    3.0.1release notes

  • Adds role and user descriptions, including this role-alteration method.

    3.0.1release notes

  • Adds TEXT handling across schema validation, result decoding, and BulkWriter paths.

    3.0.1release notes

  • Adds a method for dropping function fields.

    3.0.1release notes

  • Adds synchronous and asynchronous support for data-salvage workflows.

    3.0.1release notes

  • Adds support for external field mappings and an add-field fallback for external collections.

    3.0.1release notes

  • Adds FunctionChain APIs and forwards every specified stage during search.

    3.0.1release notes

  • Adds this method to MilvusClient and AsyncMilvusClient.

    2.6.15, 3.0.1release notesrelease notes

  • Adds support for MinHash function fields.

    3.0.1release notes

  • Supports dynamically adding struct fields.

    3.0.1release notes

  • Adds an expression helper for XGBoost.

    3.0.1release notes

Performance 1

Behavior and default changes 7

  • Importing pymilvus keeps application logging handlers open.

    3.0.3release notes

  • Array query results are materialized as standard Python lists.

    2.6.17, 3.0.1release notesrelease notes

  • Null values are allowed in this column during insert.

    2.6.17, 3.0.1release notesrelease notes

  • Role descriptions are now included in the method's output.

    3.0.1release notes

  • Float inputs are now accepted for FP16 and BF16 vectors.

    3.0.1release notes

  • Exposes error classification; only connection-setup RPC failures are mapped to CONNECT_FAILED.

    2.6.16, 3.0.1release notesrelease notes

  • Query and Search Iterator V1 and V2 implementations move to the client layer, with ORM compatibility preserved and ORM deprecation warnings aligned.

    3.0.1release notes

Fixes and other changes 15

  • Implement the missing RPC handler so AsyncMilvusClient.flush_all() works.

    3.0.3release notes

  • Implement the missing RPC handler so AsyncMilvusClient.get_compaction_plans() works.

    3.0.3release notes

  • Implement the missing RPC handler so AsyncMilvusClient.get_flush_all_state() works.

    3.0.3release notes

  • Implement the missing RPC handler so AsyncMilvusClient.update_replicate_configuration() works.

    3.0.3release notes

  • Writing bulk import files preserves null Struct Array values in CSV and null sparse-vector values in Parquet.

    3.0.3release notes

  • Results preserve Struct Array parameters such as mmap_enabled and warmup.

    3.0.3release notes

  • Importing pymilvus.bulk_writer no longer configures the root logger.

    3.0.3release notes

  • The cursor's str_pk is None before the first page is read.

    3.0.3release notes

  • Configured connection timeouts are preserved during recovery.

    2.6.16, 3.0.1release notesrelease notes

  • Sync and async reconnects swap channels atomically, protect active RPCs, and cover retired-channel reclamation.

    3.0.1release notes

  • Adds search aggregation and correctly forwards the group_by_fields parameter.

    3.0.1release notes

  • External filtering is preserved when creating search iterators.

    3.0.1release notes

  • Booleans are rejected as sparse-vector values or indices, with improved validation errors.

    3.0.1release notes

  • Supports partial updates and preserves struct-array fields reconstructed from schema dictionaries.

    2.6.17, 3.0.1release notesrelease notes

  • BulkWriter supports struct-vector fields and skips payloads for null struct rows and null struct-vector subfields.

    3.0.1release notes

pymilvus 2131 changes

Breaking changes 15

  • Empty binary-vector lists in batch writes now raise ParamError.

    2.6.18release notes

  • PyMilvus 2.6.18 requires Python 3.8 or later.

    2.6.18release notes

  • Upload skips an existing object by default when its key and byte size match; set upload_policy=UploadPolicy.OVERWRITE to replace matching objects.

    2.6.18release notes

  • Rejects boolean values in sparse vector validation and improves the related error message.

    2.6.16release notes

  • Rejects oversized compaction target sizes.

    2.6.14release notes

  • The consistency_level returned by describe_collection is now a name string.

    2.6.13release notes

  • infer_dtype_bydata now returns UNKNOWN for a list of strings instead of ARRAY.

    2.6.12release notes

  • Returns an error when a database does not exist.

    2.6.7release notes

  • The highlight query keyword was changed.

    2.6.6release notes

  • Stage was renamed to Volume, so developers using the renamed API must update their code.

    2.5.18, 2.6.5release notesrelease notes

  • Migrated to MilvusClient.

    2.6.4release notes

  • Migrated to MilvusClient.

    2.6.4release notes

  • String values for JSON fields must now be JSON-serialized bytes; serialize strings with json.dumps before inserting.

    2.6.3release notes

  • An error is now raised when a ranker has an unknown type.

    2.6.3release notes

  • Flush refers to a different method in Milvus 2.0.0; flushing is not needed to make entities searchable by query nodes.

    2.0.0release notes

Security 2

  • MilvusClient and AsyncMilvusClient add RLS policy and principal-tag management; supported read and write operations accept rls_principal for server-side enforcement.

    2.6.18release notes

  • Corrects parameter name typos that could bypass partition filters.

    2.6.11release notes

Deprecations 2

  • ORM APIs now emit deprecation warnings.

    2.6.13release notes

  • The 1.x Milvus class is deprecated and emits a warning when used with Milvus 2.0.0; it is separated from the orm-styled APIs.

    2.0.0release notes

New APIs and options 42

  • An async RPC handler is implemented for flush_all(); handlers are also implemented for get_compaction_plans() and update_replicate_configuration().

    2.6.18release notes

  • Accepts custom HTTP headers; get_import_progress() and list_import_jobs() also accept them.

    2.6.18release notes

  • The SDK exports this header for use with servers that support idempotent bulk imports.

    2.6.18release notes

  • Use UploadPolicy.OVERWRITE to replace matching objects during Volume uploads.

    2.6.18release notes

  • Supports an inclusive start option when dumping messages.

    2.6.17release notes

  • Adds role and user description support in auth APIs.

    2.6.16release notes

  • Adds dump_messages support for data salvage.

    2.6.16release notes

  • Adds element-level search support.

    2.6.16release notes

  • Adds helpers for array partial update operators.

    2.6.14release notes

  • AnnSearchRequest accepts filter= as an alias for expr=.

    2.6.13release notes

  • The compact API adds target_size to control compaction size.

    2.6.13release notes

  • The compact API adds target_size_unit to specify the unit for target_size.

    2.6.13release notes

  • A describe_volume API is added as part of external volume support.

    2.6.13release notes

  • A client API is added to get replicate configuration.

    2.6.13release notes

  • Cloud import interfaces add support for projectId.

    2.6.13release notes

  • Cloud import interfaces add support for regionId.

    2.6.13release notes

  • Adds ConnectionManager to replace the connections singleton for MilvusClient.

    2.6.10release notes

  • Adds global cluster client support for working with global clusters.

    2.6.10release notes

  • Adds virtual_style_endpoint support to the remote bulk writer.

    2.6.10release notes

  • Field schema definitions support warmup type parameters.

    2.6.9release notes

  • Users can configure gRPC channel options, alongside improved gRPC keepalive defaults.

    2.6.9release notes

  • gRPC error diagnostics now include channel_state.

    2.6.8release notes

  • gRPC error diagnostics now include debug_error_string.

    2.6.8release notes

  • Float scalar fields support floating-point numbers.

    2.6.7release notes

  • Adds async client support for list_persistent_segments.

    2.6.7release notes

  • Adds support for semantic-highlighter.

    2.6.7release notes

  • Function SDK support was added.

    2.6.6release notes

  • Search with a highlighter is now supported in pymilvus.

    2.6.5release notes

  • The bulk writer now supports timestamptz.

    2.6.5release notes

  • BulkWriter supports the Geometry data type.

    2.5.17, 2.6.4release notesrelease notes

  • PyMilvus supports TIMESTAMPTZ fields for storing and querying timestamps with time zone information.

    2.6.4release notes

  • Added the db_name parameter so import jobs can be listed for a specific database.

    2.6.4release notes

  • RemoteBulkWriter can use a specified local temporary path.

    2.6.4release notes

  • STRUCT fields support TypeParams definition.

    2.6.4release notes

  • Enable this collection property to insert custom primary keys when auto_id is enabled.

    2.6.3release notes

  • Set is_l0 to trigger L0 compaction manually to optimize storage and query performance.

    2.6.3release notes

  • Geographic data is supported in insert, query, and search operations.

    2.6.3release notes

  • Struct fields and arrays of structs are supported for storing and querying nested data structures.

    2.6.3release notes

  • A function scorer can be used as a ranker.

    2.6.3release notes

  • An API is available to update replicate configuration.

    2.6.3release notes

  • GCP supports using stage.

    2.5.17release notes

  • Delete support is introduced.

    2.0.0release notes

Performance 3

  • Improves performance across the MilvusClient path.

    2.6.10release notes

  • Search result performance was optimized for the Hit class.

    2.6.8release notes

  • Search result performance was optimized for HybridHits initialization.

    2.6.8release notes

Behavior and default changes 14

  • BulkWriter logging is scoped to the pymilvus.bulk_writer logger tree.

    2.6.18release notes

  • Improves volume upload interaction, including concurrency and progress behavior.

    2.6.16release notes

  • MilvusClient now defaults to port 443 for https:// URIs, avoiding the need to specify the HTTPS port explicitly.

    2.6.12release notes

  • Displays human-readable state and level in its repr.

    2.6.11release notes

  • The database name is now parsed from the URI.

    2.6.8release notes

  • Error messages are enhanced when AsyncMilvusClient fails to connect.

    2.6.5release notes

  • MilvusClient accepts numpy ndarray input for ARRAY fields.

    2.6.4release notes

  • BulkWriter supports the STRUCT field data type.

    2.6.4release notes

  • Error handling includes a detailed traceback for better debugging.

    2.6.4release notes

  • The async client now includes a retry mechanism and schema cache.

    2.6.3release notes

  • Remote storage usage result information is enhanced.

    2.6.3release notes

  • Users can insert a primary key when autoid is enabled.

    2.5.17release notes

  • Insert supports serialized JSON.

    2.5.17release notes

  • Consistency level is highlighted as the setting to consider instead of flushing to make entities searchable by query nodes.

    2.0.0release notes

Tooling 1

  • A comprehensive benchmarking framework was added for benchmarking pymilvus.

    2.6.6release notes

Fixes and other changes 52

  • Importing PyMilvus preserves existing application log handlers.

    2.6.18release notes

  • Returns None before the first page when the primary key is VARCHAR.

    2.6.18release notes

  • Supports struct vector fields; remote upload path prefixes are preserved on Windows.

    2.6.17release notes

  • Async schema results are unpacked before collection optimization runs.

    2.6.17release notes

  • Primary-key, partition-key, and clustering-key metadata stays synchronized when fields are added to a schema.

    2.6.17release notes

  • Boolean values used as sparse-vector indices are rejected.

    2.6.17release notes

  • Hardens sync and async connection recovery by protecting reconnect channel swaps and validating channel reclamation.

    2.6.16release notes

  • The collection_name type is validated in search, hybrid_search, and flush.

    2.6.13release notes

  • CollectionSchema.dict() returns consistency_level as an integer again and adds a name alias.

    2.6.13release notes

  • IndexParam validates the params type, handling None and rejecting invalid types.

    2.6.13release notes

  • MilvusClient no longer hangs on an unreachable URI when timeout=None.

    2.6.13release notes

  • SearchIteratorV2 pins GUARANTEE_TIMESTAMP from the probe call.

    2.6.13release notes

  • Removed the duplicate timeout keyword argument from Collection.__init__.

    2.6.12release notes

  • page_retain_order is now passed to search params, so the setting is applied during search.

    2.6.12release notes

  • Query deserialization now handles an empty result set when an ARRAY field is present.

    2.6.12release notes

  • Prevents “Cannot invoke RPC on closed channel” errors after connection recovery.

    2.6.11release notes

  • Handles None credentials.

    2.6.11release notes

  • Passing the address to GrpcHandler fixes the Milvus Lite local path, which had been broken since 2.6.10.

    2.6.11release notes

  • Guards against a None handler.

    2.6.11release notes

  • Adds support for Python 3.14.

    2.6.11release notes

  • Handles None responses to prevent AttributeError.

    2.6.11release notes

  • Correctly identifies bytes vector types in the search path.

    2.6.11release notes

  • Uses an explicit length check for NumPy array compatibility.

    2.6.11release notes

  • Clarifies guidance for wrong-port errors.

    2.6.11release notes

  • Enforces timeouts for async operations when the server is unreachable.

    2.6.10release notes

  • Retries on REPLICATE_VIOLATION during a global cluster region switch.

    2.6.10release notes

  • Accepts negative int64 primary keys.

    2.6.10release notes

  • Avoids calling len() on a scipy sparse matrix in entity_to_field_data.

    2.6.10release notes

  • Supports non-float vectors in struct array search.

    2.6.10release notes

  • Adds debounce to prevent concurrent topology refresh in the global client.

    2.6.10release notes

  • Fix tuple unpacking of the _get_schema return value in _list_vector_indexes.

    2.6.9release notes

  • SearchIteratorV2 forwards context, including db_name, to describe_collection so it uses the selected database instead of always querying the default database.

    2.6.9release notes

  • Fixes BulkWriter to support struct lists that are entirely empty.

    2.6.7release notes

  • Boolean serialization now remains uppercase for end-to-end compatibility.

    2.6.6release notes

  • The standard json parser is used to parse deeply recursive JSON when orjson fails.

    2.6.6release notes

  • Fixed negative index access when preloading float vectors.

    2.6.6release notes

  • Iterator checkpoints now save the timestamp.

    2.6.6release notes

  • Search parameters in the ORM search iterator were fixed.

    2.6.6release notes

  • False boolean values are preserved in SCANN index parameters.

    2.6.6release notes

  • Using deepcopy for struct_schema in add_field prevents reuse issues.

    2.6.5release notes

  • Fixed support for nested fields when creating an index with AsyncMilvusClient.

    2.6.5release notes

  • AsyncMilvusClient.search now supports EmbeddingList.

    2.6.5release notes

  • Fixed errors when function or function_score fetches empty params.

    2.6.5release notes

  • Async connections are distinguished by event loop ID to fix connection reuse.

    2.6.4release notes

  • Fixed connection caching when retrieving collection schema.

    2.6.4release notes

  • Fixed a bug related to connection reset handling.

    2.6.4release notes

  • Async flush() waits for segments to be flushed.

    2.6.4release notes

  • Migrated to MilvusClient.

    2.6.4release notes

  • MilvusClient insert() passes keyword arguments, such as timeout, to the underlying implementation.

    2.6.4release notes

  • Fixed key names in segment info retrieval.

    2.6.4release notes

  • Querying STRUCT fields no longer incorrectly returns an empty array.

    2.6.4release notes

  • hybrid_search now supports EmbeddingList in request data.

    2.6.3release notes