@voidwire/lore 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/contradiction.ts +7 -4
- package/lib/search.ts +1 -1
- package/package.json +1 -1
package/lib/contradiction.ts
CHANGED
|
@@ -110,10 +110,13 @@ export async function classifyContradiction(
|
|
|
110
110
|
.map((c) => `[rowid: ${c.rowid}] ${c.content}`)
|
|
111
111
|
.join("\n");
|
|
112
112
|
|
|
113
|
-
const systemPrompt = `You
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
const systemPrompt = `You deduplicate knowledge entries. Your job is to prevent storing the same insight multiple times.
|
|
114
|
+
|
|
115
|
+
Reply NOOP if the new entry means the same thing as ANY existing entry — even if the words are different.
|
|
116
|
+
Reply DELETE <rowid> if the new entry is a better version of an existing entry.
|
|
117
|
+
Reply ADD only if the new entry contains a genuinely novel insight not present in any existing entry.
|
|
118
|
+
|
|
119
|
+
When in doubt, reply NOOP. Redundancy is worse than missing an entry.`;
|
|
117
120
|
|
|
118
121
|
const userPrompt = `New entry (source: ${source}, topic: ${topic}):
|
|
119
122
|
${content}
|
package/lib/search.ts
CHANGED