milvus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 5 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)

Option configures the Milvus store

func WithCollection

func WithCollection(name string) Option

WithCollection sets the collection name

func WithDimension

func WithDimension(dim int) Option

WithDimension sets the vector dimension

type Store

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

Store implements a vector store using Milvus

func NewStore

func NewStore(ctx context.Context, addr string, opts ...Option) (*Store, error)

NewStore creates a new Milvus vector store

func (*Store) Add

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

Add adds chunks to the Milvus store

func (*Store) Close

func (s *Store) Close() error

Close closes the Milvus client

func (*Store) Delete

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

Delete removes chunks from the Milvus store

func (*Store) Search

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

Search performs similarity search in Milvus

Jump to

Keyboard shortcuts

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