Skip to content

Commit d08b220

Browse files
remove distance when searching
1 parent 73fc8e4 commit d08b220

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rag.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ func (s *sqliteRAGStore) FindSimilar(ctx context.Context, embedding []float32, l
346346
SELECT c.id, c.text, c.metadata, v.distance
347347
FROM vec_items v
348348
JOIN contents c ON v.content_id = c.id
349-
WHERE v.embedding MATCH(vec_quantize_int8(vec_slice(vec_f32(?), 0, 256), 'unit'), 100)
350-
AND v.distance < 80`
349+
WHERE v.embedding MATCH(vec_quantize_int8(vec_slice(vec_f32(?), 0, 256), 'unit'), 100)`
351350

352351
// Add content type filter if specified
353352
var whereClauses []string

0 commit comments

Comments
 (0)