Skip to main content
Apply filters to payload fields during search to combine semantic similarity with business rules. VectorAI DB returns only results whose payloads match the filter conditions. If no points match your filters, you receive an empty response.
Before you begin, make sure you have an existing collection with payload-bearing points and a query vector that matches the collection’s dimension.

Search with payload filters

The following example finds semantically similar items that match specific criteria.
For more complex filter operations, see the filtering documentation which covers must, should, and must-not filter types.
Each result includes these fields:
  • id: The unique identifier of the matching point.
  • score: Similarity score for points that passed the filter.
  • payload: Full metadata dictionary showing filtered product attributes.