Filtering vs indexing
hey does filter: (q) => q.eq("cuisine", "French"), in vectorSearch means it only doing search where cuisine is French
3 Replies
Indexes limit the number of rows scanned, filters do not - I think that’s the info you’re looking for, let me know if not.
filter:
in a ctx.vectorSearch({filter: ...})
does reduce the amount of rows searched. In the context of ctx.query(...)...filter(...)
the filter doesn't reduce the amount of rows searched.Ah, thank you for clearing that up, I stand corrected!