From 4d101eca674193f5eb0a474901963ae2804a4ecd Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Mon, 23 Nov 2026 19:19:15 +0700 Subject: [PATCH 1/7] feat(openapi): add create-collection params read by v30.2 CollectionSchema gains curation_sets, and the endpoint gains the src_name and copy_documents query params that clone a collection. Field gains cascade_delete, hnsw_params, truncate_len, and the model_config properties for GCP regions, service accounts and tasks. Field is shared, so this also covers fields[] in PATCH /collections/{collectionName}. nested and nested_array are left out: the server computes them and overwrites any value sent. --- openapi.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/openapi.yml b/openapi.yml index bc78960..4f99f6c 100644 --- a/openapi.yml +++ b/openapi.yml @@ -131,6 +131,21 @@ paths: When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection. operationId: createCollection + parameters: + - name: src_name + in: query + description: > + Name of an existing collection to clone. The new collection copies its fields and + settings, but not its `metadata`, and only `name` is read from the request body. + schema: + type: string + - name: copy_documents + in: query + description: > + With `src_name`, also copy the source collection's documents. The server only checks + that the parameter is present, so any value, including `false`, copies them. + schema: + type: boolean requestBody: description: The collection object to be created content: @@ -2472,6 +2487,11 @@ components: minLength: 1 maxLength: 1 default: [] + curation_sets: + type: array + description: List of curation set names to associate with this collection + items: + type: string voice_query_model: $ref: "#/components/schemas/VoiceQueryModelCollectionConfig" metadata: @@ -2565,9 +2585,26 @@ components: type: boolean description: > Allow documents to be indexed successfully even when the referenced document doesn't exist yet. + cascade_delete: + type: boolean + description: > + Delete this document once every document it references is deleted. Can only be false on a + `reference` field with `async_reference` set to true. Default: true. num_dim: type: integer example: 256 + hnsw_params: + type: object + description: Parameters of the HNSW index built for a vector field. + properties: + ef_construction: + type: integer + minimum: 1 + description: "Size of the candidate list while building the index. Default: 200." + M: + type: integer + minimum: 1 + description: "Number of connections each node keeps in the index. Default: 16." drop: type: boolean example: true @@ -2592,6 +2629,12 @@ components: type: string description: Name of the stemming dictionary to use for this field example: irregular-plurals + truncate_len: + type: integer + minimum: 0 + description: > + String tokens longer than this many characters are truncated when indexed and filtered. + 0 disables truncation. Default: 100. token_separators: type: array description: > @@ -2646,6 +2689,31 @@ components: type: string project_id: type: string + region: + type: string + description: "GCP region of the Vertex AI model. Default: `us-central1`." + service_account: + type: object + description: > + GCP service account credentials, used instead of `access_token`, `refresh_token`, + `client_id` and `client_secret`. + required: + - client_email + - private_key + properties: + client_email: + type: string + private_key: + type: string + token_uri: + type: string + description: "Default: `https://oauth2.googleapis.com/token`." + document_task: + type: string + description: "GCP task type used when embedding documents. Default: `RETRIEVAL_DOCUMENT`." + query_task: + type: string + description: "GCP task type used when embedding queries. Default: `RETRIEVAL_QUERY`." indexing_prefix: type: string query_prefix: From addab9a7b381ad61b395e890fa2d7756aa9bfd30 Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:32:17 +0700 Subject: [PATCH 2/7] feat(openapi): add curation_sets to the collection update schema PATCH /collections/{collectionName} accepts curation_sets in v30.2, as it does synonym_sets. --- openapi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi.yml b/openapi.yml index 4f99f6c..88d5557 100644 --- a/openapi.yml +++ b/openapi.yml @@ -2523,6 +2523,11 @@ components: items: type: string example: "synonym_set_1" + curation_sets: + type: array + description: List of curation set names to associate with this collection + items: + type: string metadata: type: object description: > From b0001ae5d18d726bf3d64c8a48c3a1c79efd06c0 Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:43:38 +0700 Subject: [PATCH 3/7] feat(openapi): add include_fields and exclude_fields to document fetch GET /collections/{collectionName}/documents/{documentId} prunes the returned document with them in v30.2, as search does. --- openapi.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openapi.yml b/openapi.yml index 88d5557..3b3c2dc 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1094,6 +1094,16 @@ paths: required: true schema: type: string + - name: include_fields + in: query + description: Comma-separated list of fields from the document to include in the response + schema: + type: string + - name: exclude_fields + in: query + description: Comma-separated list of fields from the document to exclude from the response + schema: + type: string responses: '200': description: The document referenced by the ID From 43e31a83116b4c552b65db04079b871e700d1350 Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:43:47 +0700 Subject: [PATCH 4/7] feat(openapi): add ignore_not_found to single document delete DELETE /collections/{collectionName}/documents/{documentId} reads it in v30.2, and responds 200 with just the id when the document is missing. --- openapi.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openapi.yml b/openapi.yml index 3b3c2dc..bc17287 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1186,6 +1186,12 @@ paths: required: true schema: type: string + - name: ignore_not_found + in: query + description: > + Respond 200 with `{"id": documentId}` instead of 404 when the document doesn't exist. + schema: + type: boolean responses: '200': description: The document referenced by the ID was deleted From 4e3c944ce5eed3986d44727856a3ec628b8e4527 Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:44:39 +0700 Subject: [PATCH 5/7] feat(openapi): add remote embedding params to document indexing POST /collections/{collectionName}/documents reads remote_embedding_timeout_ms and remote_embedding_num_tries in v30.2, as import does. --- openapi.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openapi.yml b/openapi.yml index bc17287..a66c8b6 100644 --- a/openapi.yml +++ b/openapi.yml @@ -295,6 +295,16 @@ paths: description: Dealing with Dirty Data schema: $ref: "#/components/schemas/DirtyValues" + - name: remote_embedding_timeout_ms + in: query + description: "Timeout (in milliseconds) for fetching remote embeddings. Default: 60000." + schema: + type: integer + - name: remote_embedding_num_tries + in: query + description: "Number of times to retry fetching remote embeddings. Default: 2." + schema: + type: integer requestBody: description: The document object to be indexed content: From 86c9b0e31419b65648851f572a06290898e5169c Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:44:53 +0700 Subject: [PATCH 6/7] feat(openapi): add remote embedding timeout and retries to import POST /collections/{collectionName}/documents/import reads remote_embedding_timeout_ms and remote_embedding_num_tries in v30.2. --- openapi.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openapi.yml b/openapi.yml index a66c8b6..52f0009 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1043,6 +1043,12 @@ paths: response, you can use the return_id parameter. remote_embedding_batch_size: type: integer + remote_embedding_timeout_ms: + type: integer + description: "Timeout (in milliseconds) for fetching remote embeddings. Default: 60000." + remote_embedding_num_tries: + type: integer + description: "Number of times to retry fetching remote embeddings. Default: 2." return_doc: type: boolean action: From f7affe7d00fbec7c8d27b8017851e4fd8d39a8de Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Sun, 15 Nov 2026 21:45:30 +0700 Subject: [PATCH 7/7] feat(openapi): add compact_store to collection delete DELETE /collections/{collectionName} reads it in v30.2 and compacts the deleted collection's key range in the store. --- openapi.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openapi.yml b/openapi.yml index 52f0009..8c5b065 100644 --- a/openapi.yml +++ b/openapi.yml @@ -254,6 +254,13 @@ paths: required: true schema: type: string + - name: compact_store + in: query + description: > + Compact the on-disk store's key range for the collection after deleting it, to reclaim disk space + immediately. Default: false. + schema: + type: boolean responses: '200': description: Collection deleted