petern48 commented on PR #635:
URL: https://github.com/apache/sedona-db/pull/635#issuecomment-3924539563

   For what it's worth, the other day I stumbled across lancedb handling this 
exact scenario. They offer a `prefilter` parameter for their approximate 
k-nearest-neighbors vector search functionality. Not quite SQL, but worth 
noting that another project has indeed encountered this and supports both cases.
   
   ```python
   results_post_filtered = (
       table.search(query_embed)
       .where("label > 1", prefilter=False)  # prefilter parameter allows user 
to choose
       .select(["text", "keywords", "label"])
       .limit(5)
       .to_pandas()
   )
   ```
   
   
https://docs.lancedb.com/search/vector-search#vector-search-with-postfiltering


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to