How to use 'and' conditional for vetorSearch?
The API for vector search filters only provides q.eq and q.or methods, and does not mention support for q.and or combining multiple q.eq conditions with AND logic VectorFilterBuilder API.
Thank you very much, and if you can help me with a solution, much better!
https://docs.convex.dev/search/vector-search#filter-expressions
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Check out how the RAG component achieves this - essentially indexing a field that is a combination of the things to "and" https://github.com/get-convex/rag?tab=readme-ov-file#filtered-search
GitHub
GitHub - get-convex/rag: Document search component to aid RAG
Document search component to aid RAG. Contribute to get-convex/rag development by creating an account on GitHub.