You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`query`|`string`| Either | Natural language search query (e.g., "student at desk"). |
352
+
|`image_base64`|`string`| Either | Base64 encoded image string for visual similarity search. |
353
+
|`max_num_results`|`integer`| No | Maximum number of results to return. Defaults to 10. For text queries, up to `2 × max_num_results` may be returned (`top-k` from visual collection + `top-k` from document collection, merged and sorted by distance). For image queries, at most `max_num_results` are returned.|
354
+
|`filter`|`object`| No | Metadata filters (e.g., {"type": ["document"], "tags": ["class"]}), detail sees below |
355
+
356
+
* Filter Usage Detail
357
+
358
+
Different filter keys are always combined with `AND`. When a filter value is a `list`, the matching logic depends on the field type:
359
+
360
+
| Field type | Example fields | List behavior | Operator used |
|`Array metadata`|`tags`| Matches if the stored array contains **at least one** of the filter values |`$contains`|
363
+
|`Scalar metadata`|`type`, `course`, `semester`| Matches if the stored value **equals any** of the filter values |`$eq` (OR) |
364
+
365
+
| Note: Video-type results may appear even when "video" is not explicitly selected in the type filter, because relevant document summaries can be converted into video results during post-processing. These constructed results have "original_type": "constructed_from_summary" in their metadata to distinguish them from native video frame results.
355
366
356
367
* Example:
357
368
Request:
358
369
```
370
+
# Example 1: Filter by tags — returns results whose tags array contains "classroom" or "student"
# Example 2: Filter by type — available values: `video`, `image`, `document`. If not specified, all types are returned. Example returns only `video` or `document` results:
0 commit comments