Intelligent FigI
Convex Community2y ago
6 replies
Intelligent Fig

Vector search advanced filtering

filter: (q) =>
  q.or(q.eq("cuisine", "French"), q.eq("mainIngredient", "butter")),



The above is what we can currently achieve using filters in vector search.

Can we expect more advanced filtering anytime soon?

here is an example of what i would like to achieve. (and operator, greater than and less than to filter numbers)
eg.
filter: (q) =>
q.and(q.eq("category", "cosmetics"),   q.and(q.gt("price", 10), q.lt("price, 50)))
Was this page helpful?