weaviate

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

func WithCollection

func WithCollection(name string) Option

func WithDimension

func WithDimension(dim int) Option

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(addr string, apiKey string, opts ...Option) (*Store, error)

func (*Store) Add

func (s *Store) Add(ctx context.Context, chunks []core.Chunk, embeddings [][]float32) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, ids []string) error

func (*Store) Search

func (s *Store) Search(ctx context.Context, query []float32, opts vectorstore.SearchOptions) ([]core.Result, error)

func (*Store) SearchByMetadata added in v1.0.1

func (s *Store) SearchByMetadata(ctx context.Context, metadata map[string]string) ([]core.Chunk, error)

SearchByMetadata searches for chunks with matching metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL