-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
14 lines (12 loc) · 712 Bytes
/
Copy patherrors.go
File metadata and controls
14 lines (12 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package nanovec
import "errors"
var (
ErrCollectionExists = errors.New("nanovec: collection already exists")
ErrCollectionNotFound = errors.New("nanovec: collection not found")
ErrIDNotFound = errors.New("nanovec: id not found")
ErrDimensionMismatch = errors.New("nanovec: vector dimension does not match collection")
ErrInvalidDimension = errors.New("nanovec: dimension must be greater than zero")
ErrEmptyID = errors.New("nanovec: id must not be empty")
ErrZeroVector = errors.New("nanovec: cannot normalize a zero vector for a cosine collection")
ErrIndexNotBuilt = errors.New("nanovec: approximate index not built or invalidated by a write; call BuildIndex")
)