Count returns the number of vectors currently stored.
()
| 55 | |
| 56 | // Count returns the number of vectors currently stored. |
| 57 | func (v *VectorIndex) Count() int { |
| 58 | if v == nil { |
| 59 | return 0 |
| 60 | } |
| 61 | return v.idx.Count() |
| 62 | } |
| 63 | |
| 64 | // MissingFor returns the subset of factIDs that have no vector yet. |
| 65 | func (v *VectorIndex) MissingFor(factIDs []string) []string { |