Documentation
¶
Overview ¶
Package purego provides a zero-CGO, pure Go VectorIndex implementation. It performs in-memory cosine similarity scanning over vector embeddings, allowing fully functional semantic search without external database extensions or build tags.
Index ¶
- type Adapter
- func (a *Adapter) Capabilities(_ context.Context) (domain.Capabilities, error)
- func (a *Adapter) Close() error
- func (a *Adapter) Delete(_ context.Context, ids []int64) error
- func (a *Adapter) Health(_ context.Context) domain.Health
- func (a *Adapter) ID() string
- func (a *Adapter) Search(_ context.Context, q domain.VectorQuery) ([]domain.VectorCandidate, error)
- func (a *Adapter) Upsert(_ context.Context, points []domain.VectorPoint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements domain.VectorIndex in pure Go.
func (*Adapter) Capabilities ¶
Capabilities returns the adapter's capabilities.
func (*Adapter) Search ¶
func (a *Adapter) Search(_ context.Context, q domain.VectorQuery) ([]domain.VectorCandidate, error)
Search performs cosine similarity calculation against indexed points.
Click to show internal directories.
Click to hide internal directories.