fix(document memory): dedup graph sync, filter terminal output from archive, add min relevance threshold

This commit is contained in:
2026-07-19 14:21:04 +08:00
parent c1d14681bf
commit 4495447b85
3 changed files with 27 additions and 7 deletions

View File

@ -84,7 +84,7 @@ func (s *Store) Search(query Vector, topK int) []DocVector {
for _, d := range s.docs {
if d.ID == id {
score := CosineSimilarity(query, d.Vector)
if score > 0 {
if score > 0.05 {
results = append(results, scored{d, score})
}
break