-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Description
Is it possible to do a pagination?
I tried the following
SELECT
*
FROM %s
WHERE embedding MATCH vec_quantize_binary(%s)
AND k = %d
LIMIT %d OFFSET %d
but got an error
Only LIMIT or 'k =?' can be provided, not both
I am planning to implement something like this:
SELECT
*
FROM %s
WHERE embedding MATCH vec_quantize_binary(%s)
ORDER BY distance
LIMIT %d OFFSET %d
but wonder. Is there a better way to do it?
Thank you very much!
Metadata
Metadata
Assignees
Labels
No labels