Skip to content

Commit 704c7d5

Browse files
authored
Merge pull request #560 from 0xFlicker/fix-sql
fix: sql command
2 parents 666d5c1 + 3f9ecb9 commit 704c7d5

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)