Upsert Vectors
Non-empty array of points to insert or update.
Query Vectors
Query embedding. Required unless
query is provided and the app’s vector backend is a Bedrock Knowledge Base.Natural-language query text. Only used (and required) for apps backed by a Bedrock Knowledge Base — ignored by other backends.
Number of nearest results to return.
Backend-specific metadata filter.
Include each result’s stored
payload in the response.Errors
| Status | Error | Applies to |
|---|---|---|
| 400 | vectorSize must be a positive integer | Create Index |
| 400 | distance must be one of: Cosine, Dot, Euclid, Manhattan | Create Index |
| 400 | vectors must be a non-empty array | Upsert |
| 400 | vector must be a non-empty array of numbers (or query for Bedrock Knowledge Base apps) | Query |
| 401 | Unauthorized or app not found | All |
| 404 | Collection "{vectorName}" not found | Query, Upsert, Get/Delete Index |
| 409 | Collection "{vectorName}" already exists | Create Index |