Forget removes facts' vectors. Called by the compactor when a fact is archived so we never serve a cosine match against a deleted note.
(factIDs ...string)
| 128 | // Forget removes facts' vectors. Called by the compactor when a fact is archived |
| 129 | // so we never serve a cosine match against a deleted note. |
| 130 | func (v *VectorIndex) Forget(factIDs ...string) { |
| 131 | if v == nil { |
| 132 | return |
| 133 | } |
| 134 | v.idx.Forget(factIDs...) |
| 135 | } |