Repository navigation
Expand file tree
/
Copy patherrors.go
More file actions
42 lines (34 loc) · 1.79 KB
/
Copy patherrors.go
File metadata and controls
42 lines (34 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package weave
import "errors"
var (
// Store errors.
ErrNoStore = errors.New("weave: no store configured")
ErrStoreClosed = errors.New("weave: store closed")
ErrMigrationFailed = errors.New("weave: migration failed")
// ErrTenantRequired is returned by a call made on a context with no
// tenant (see WithTenant). Nothing reads or writes across tenants.
ErrTenantRequired = errors.New("weave: tenant required")
// Not found errors.
ErrCollectionNotFound = errors.New("weave: collection not found")
ErrDocumentNotFound = errors.New("weave: document not found")
ErrChunkNotFound = errors.New("weave: chunk not found")
ErrIngestJobNotFound = errors.New("weave: ingest job not found")
// Conflict errors.
ErrCollectionAlreadyExists = errors.New("weave: collection already exists")
ErrDocumentAlreadyExists = errors.New("weave: document already exists")
ErrDuplicateDocument = errors.New("weave: duplicate document (same content hash)")
// State errors.
ErrInvalidState = errors.New("weave: invalid state transition")
ErrEmptyContent = errors.New("weave: empty content")
ErrInvalidArgument = errors.New("weave: invalid argument")
// Pipeline errors.
ErrNoEmbedder = errors.New("weave: no embedder configured")
ErrNoVectorStore = errors.New("weave: no vector store configured")
ErrNoChunker = errors.New("weave: no chunker configured")
// ErrDimensionMismatch reports an embedding whose length differs from
// the dimensions the collection or vector table was set up with.
ErrDimensionMismatch = errors.New("weave: embedding dimensions do not match")
// ErrIngestInterrupted marks a document whose ingest stopped before it
// finished, for example because the process was killed.
ErrIngestInterrupted = errors.New("weave: ingest interrupted before it finished")
)