Skip to main content
Settings hold the collection’s default retrieval configuration in their own subresource — collection PATCH never touches them. Settings are accessed at /v2/ai/collections/{uuid}/settings. top_k can be overridden per request at search time; retrieval_type cannot — a per-request value is accepted but ignored, and meta.retrieval_type echoes the mode that actually ran. retrieval_type selects how a query is matched against the collection’s indexed content — see Search Modes for how the modes differ and when to use each.
Keep retrieval_type set to vector. The other two modes are not ready, and they fail differently:
  • hybrid is accepted by this endpoint but a collection set to it cannot be searched yet.
  • keyword is rejected here with 422 unsupported_retrieval_type — it cannot be set at all.

Get Settings

Replace Settings

PUT replaces the entire settings object. Omitted keys reset to their defaults.

Merge Settings

PATCH does a partial merge at the retrieval key. Unnamed fields are preserved.
Returns the full merged settings object — retrieval_type is unchanged.

Validation Errors

Unsupported retrieval_type values return 422:
top_k outside 1—50 returns 422 with code invalid_top_k. Unrecognized fields in the retrieval object are rejected with 400.
  • Search Modes — vector, keyword, and hybrid compared
  • Collections — create, list, retrieve, update, and delete collections
  • Sources — add, replace, and remove data sources