Skip to content

Commit 3f9ecb9

Browse files
committed
fix: sql command
1 parent 236943f commit 3f9ecb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/adapter-sqlite/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class SqliteDatabaseAdapter
296296
let sql = `
297297
SELECT *, vec_distance_L2(embedding, ?) AS similarity
298298
FROM memories
299-
WHERE embedding IS NOT NULL type = ? AND agentId = ?`;
299+
WHERE embedding IS NOT NULL AND type = ? AND agentId = ?`;
300300

301301
if (params.unique) {
302302
sql += " AND `unique` = 1";

0 commit comments

Comments
 (0)