Skip to content

Commit a43513a

Browse files
authored
move TrainableIndex interface to the right place (#87)
1 parent 589b597 commit a43513a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

index.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ type IndexFileCopyable interface {
6565
CopyFile(file string, d IndexDirectory) error // source index
6666
}
6767

68+
type TrainableIndex interface {
69+
Index
70+
Train(*Batch) error
71+
}
72+
6873
// EventIndex is an optional interface for exposing the support for firing event
6974
// callbacks for various events in the index.
7075
type EventIndex interface {

vector_index.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,3 @@ func (vd *VectorDoc) Reset() *VectorDoc {
8585
vd.ID = id[:0]
8686
return vd
8787
}
88-
89-
type TrainableIndex interface {
90-
Index
91-
Train(*Batch) error
92-
}

0 commit comments

Comments
 (0)