MCPcopy
hub / github.com/mudler/LocalAI / Search

Method Search

core/backend/stores.go:20–20  ·  view source on GitHub ↗
(ctx context.Context, vec []float32)

Source from the content-addressed store, hash-verified

18// and the serialised payload, or ok=false on a clean miss.
19type VectorStore interface {
20 Search(ctx context.Context, vec []float32) (similarity float64, payload []byte, ok bool, err error)
21 Insert(ctx context.Context, vec []float32, payload []byte) error
22}
23

Callers 5

RegisterUIAPIRoutesFunction · 0.65
SearchSkillsEndpointFunction · 0.65
stores_test.goFile · 0.65
gallery_test.goFile · 0.65
GallerySearchMethod · 0.65

Implementers 2

localVectorStorecore/backend/stores.go
memVectorStorecore/services/routing/router/embedding

Calls

no outgoing calls

Tested by

no test coverage detected