Skip to content

Commit

Permalink
Merge pull request elizaOS#560 from 0xFlicker/fix-sql
Browse files Browse the repository at this point in the history
fix: sql command
  • Loading branch information
sirkitree authored Nov 24, 2024
2 parents 666d5c1 + 3f9ecb9 commit 704c7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-sqlite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export class SqliteDatabaseAdapter
let sql = `
SELECT *, vec_distance_L2(embedding, ?) AS similarity
FROM memories
WHERE embedding IS NOT NULL type = ? AND agentId = ?`;
WHERE embedding IS NOT NULL AND type = ? AND agentId = ?`;

if (params.unique) {
sql += " AND `unique` = 1";
Expand Down

0 comments on commit 704c7d5

Please sign in to comment.