chore: drop hive-mind provenance notes from comments (P2.2)
Comments that pointed at hive-mind-core files, the hive-mind OSS mirror and its drift triage now describe the code as it is. The in-process reranker caches its model in ~/.waggle/models, like the embedder, when the caller passes no directory; the sidecar always passes one.
This commit is contained in:
@@ -160,9 +160,8 @@ export function truncateToTokenBudget(text: string, maxTokens: number): string {
|
||||
}
|
||||
|
||||
// ── Near-duplicate text dedup (for live search snippets) ──────────────────
|
||||
// Mirrors the trigram-cosine in packages/hive-mind-core/src/harvest/dedup.ts;
|
||||
// kept local so this module stays a standalone pure utility (the harvest copy
|
||||
// operates on DistilledKnowledge, not arbitrary result items).
|
||||
// Trigram cosine similarity, kept local so this module stays a standalone pure
|
||||
// utility.
|
||||
|
||||
function normalizeForTrigram(s: string): string {
|
||||
return s.toLowerCase().replace(/\s+/g, ' ').trim();
|
||||
|
||||
Reference in New Issue
Block a user