Documentation ¶
Index ¶
- Constants
- type SequentialVectorIndex
- func (ims *SequentialVectorIndex) DeleteVector(ctx context.Context, textId int64, key string) error
- func (ims *SequentialVectorIndex) GetCheckpointId(ctx context.Context) (int64, error)
- func (ims *SequentialVectorIndex) GetEmbedderName() string
- func (ims *SequentialVectorIndex) GetLastIndexedTextId(ctx context.Context) (int64, error)
- func (ims *SequentialVectorIndex) GetSearchMethodName() string
- func (ims *SequentialVectorIndex) GetVector(ctx context.Context, key string) ([]float32, error)
- func (ims *SequentialVectorIndex) GetVectorNodesMap() map[string][]float32
- func (ims *SequentialVectorIndex) InsertVector(ctx context.Context, textId int64, vec []float32) error
- func (ims *SequentialVectorIndex) InsertVectorToMemory(ctx context.Context, textId, vectorId int64, key string, vec []float32) error
- func (ims *SequentialVectorIndex) InsertVectors(ctx context.Context, textIds []int64, vecs [][]float32) error
- func (ims *SequentialVectorIndex) InsertVectorsToMemory(ctx context.Context, textIds []int64, vectorIds []int64, keys []string, ...) error
- func (ims *SequentialVectorIndex) Search(ctx context.Context, query []float32, maxResults int, ...) (utils.MaxTupleHeap, error)
- func (ims *SequentialVectorIndex) SearchWithKey(ctx context.Context, queryKey string, maxResults int, ...) (utils.MaxTupleHeap, error)
- func (ims *SequentialVectorIndex) SetEmbedderName(embedderName string) error
Constants ¶
View Source
const (
SequentialVectorIndexType = "SequentialVectorIndex"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SequentialVectorIndex ¶
type SequentialVectorIndex struct { VectorMap map[string][]float32 // key: vector // contains filtered or unexported fields }
func NewSequentialVectorIndex ¶
func NewSequentialVectorIndex(searchMethod, embedder string) *SequentialVectorIndex
func (*SequentialVectorIndex) DeleteVector ¶
func (*SequentialVectorIndex) GetCheckpointId ¶
func (ims *SequentialVectorIndex) GetCheckpointId(ctx context.Context) (int64, error)
func (*SequentialVectorIndex) GetEmbedderName ¶
func (ims *SequentialVectorIndex) GetEmbedderName() string
func (*SequentialVectorIndex) GetLastIndexedTextId ¶
func (ims *SequentialVectorIndex) GetLastIndexedTextId(ctx context.Context) (int64, error)
func (*SequentialVectorIndex) GetSearchMethodName ¶
func (ims *SequentialVectorIndex) GetSearchMethodName() string
func (*SequentialVectorIndex) GetVectorNodesMap ¶
func (ims *SequentialVectorIndex) GetVectorNodesMap() map[string][]float32
func (*SequentialVectorIndex) InsertVector ¶
func (*SequentialVectorIndex) InsertVectorToMemory ¶
func (*SequentialVectorIndex) InsertVectors ¶
func (*SequentialVectorIndex) InsertVectorsToMemory ¶
func (*SequentialVectorIndex) Search ¶
func (ims *SequentialVectorIndex) Search(ctx context.Context, query []float32, maxResults int, filter index.SearchFilter) (utils.MaxTupleHeap, error)
func (*SequentialVectorIndex) SearchWithKey ¶
func (ims *SequentialVectorIndex) SearchWithKey(ctx context.Context, queryKey string, maxResults int, filter index.SearchFilter) (utils.MaxTupleHeap, error)
func (*SequentialVectorIndex) SetEmbedderName ¶
func (ims *SequentialVectorIndex) SetEmbedderName(embedderName string) error
Click to show internal directories.
Click to hide internal directories.