Help us shape the future of Go! Take the 2026 Go Developer Survey

weviate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Weaviate

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

func NewWeaviate

func NewWeaviate(client *weaviate.Client, className string, embedder ragkit.Embedder) *Weaviate

func (*Weaviate) Delete

func (w *Weaviate) Delete(ctx context.Context, id string) error

func (*Weaviate) Exists

func (w *Weaviate) Exists(ctx context.Context, id string) (bool, error)

func (*Weaviate) Index

func (w *Weaviate) Index(ctx context.Context, docs ...ragkit.Document) ([]string, error)

func (*Weaviate) Retrieve

func (w *Weaviate) Retrieve(ctx context.Context, query []float32, topK int, metadataFieldNames ...string) ([]ragkit.RetrievedDoc, error)

func (*Weaviate) RetrieveText

func (w *Weaviate) RetrieveText(ctx context.Context, text string, topK int, metadataFieldNames ...string) ([]ragkit.RetrievedDoc, error)

func (*Weaviate) String added in v0.1.3

func (w *Weaviate) String() string

Jump to

Keyboard shortcuts

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