Documentation ¶
Index ¶
- type VectorStore
- func (v *VectorStore) Delete(ctx context.Context, vendor string, sourceIDs ...string) error
- func (v *VectorStore) Init(ctx appx.Context) error
- func (v *VectorStore) Query(ctx context.Context, vendor string, vector []float64, topK int, ...) (similarities []*api.Similarity, err error)
- func (v *VectorStore) Router() chi.Router
- func (v *VectorStore) Upsert(ctx context.Context, vendor string, documents []*api.Document) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VectorStore ¶
type VectorStore struct {
// contains filtered or unexported fields
}
func (*VectorStore) Query ¶
func (v *VectorStore) Query(ctx context.Context, vendor string, vector []float64, topK int, minScore float64) (similarities []*api.Similarity, err error)
func (*VectorStore) Router ¶
func (v *VectorStore) Router() chi.Router
Click to show internal directories.
Click to hide internal directories.