vector

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package vector provides a service for searching vector embeddings. It combines the embedding engine and the vector store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Search(ctx context.Context, collection string, query string, topK uint64, filter map[string]interface{}) ([]store.SearchResult, error)
	Health(ctx context.Context) error
	Cancel()
}

func NewService

func NewService(s VectorSettings, secrets map[string]string) (Service, error)

type VectorSettings

type VectorSettings struct {
	Enabled bool           `json:"enabled"`
	Model   string         `json:"model"`
	Embed   embed.Settings `json:"embed"`
	Store   store.Settings `json:"store"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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