You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for Python 3.11 and Ubuntu for SQLite #4263
@franciscojavierarceo I think this is because there's a SQLite bug on version < 3.41 on LIMIT ? clauses on virtual tables. In a lot of sqlite-vec docs the example KNN query is:
select
rowid,
distance
from vec_example
where column match ?
order by distance
limit100
But this query won't work on SQLite version < 3.41, which is causing this bug.
The workaround is to provide the limit as a WHERE clause like so:
select
rowid,
distance
from vec_example
where column match ?
and k =100order by distance
I'll be sure to document this more - tbh I might not even show the LIMIT 100 variant anymore, since many people are stuck on old SQLite versions in practice
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
asg017 commentedon Jun 10, 2024
@franciscojavierarceo I think this is because there's a SQLite bug on version < 3.41 on
LIMIT ?clauses on virtual tables. In a lot of sqlite-vec docs the example KNN query is:But this query won't work on SQLite version < 3.41, which is causing this bug.
The workaround is to provide the limit as a
WHEREclause like so:I'll be sure to document this more - tbh I might not even show the
LIMIT 100variant anymore, since many people are stuck on old SQLite versions in practicefranciscojavierarceo commentedon Jun 10, 2024
Thanks!
FYI, I just added support for
sqlite_vecin Feast here: #4176Thank you for this package!
stale commentedon Apr 26, 2025
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.