Open cevian opened 2 months ago
Hello, dont know if I am doing something stupid, but currently I am using this to achieve distance cutoff.
SELECT *, embedding <=> %s as distance FROM server_embeddingdatasetrecord
WHERE embedding <=> %s < %s AND dataset_id = %s
ORDER BY distance
LIMIT %s;
Again, if there is anyone there, a better documentation is very helpful for those who dont have much knowledge about sql and vector indexing.
Right now we only support ORDER BY distance queries. We should add support for WHERE distance <0.6 queries too.