Closed jjtolton closed 10 months ago
Thanks for the report! I'll fix these issues in the README.
Re: the second issue - the index doesn't always get triggered, in particular for small tables. If you run SET enable_seqscan = off;
that will ensure that the index is triggered in this case. (You can run SET enable_seqscan = on;
to undo this action. Alternatively, if you do not expect the index to get triggered, you can sort by l2sq_dist(vector, array[0,0,0])
We have a note on the operator use in the README for more details.
Facing the same issue: Operator <-> has no standalone meaning and is reserved for use in vector index lookups only
@raoufchebri I just edited the README to clarify --- for small tables, you will need to set enable_seqscan
to off, since the index doesn't always get triggered. Please let me know if that helps!
We changed this so that the operator is always used regardless of whether or not the index is created, similar to pgvector, so this should no longer be an issue!
I was able to get it working by changing dims to dim, and omitting the <-> ... operator and subsequent clause, but I'm not sure how important these are for the overall workflow. Thanks for this, I was struggling getting the sqllite extension and pgvector extensions running within a spike efficient timeframe.