mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-23 18:38:11 +00:00
fix(document memory): dedup graph sync, filter terminal output from archive, add min relevance threshold
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user