vector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendSQLite   = internalvector.BackendSQLite
	BackendPgVector = internalvector.BackendPgVector
	BackendQdrant   = internalvector.BackendQdrant
	BackendChroma   = internalvector.BackendChroma
	BackendMemory   = internalvector.BackendMemory
	BackendHNSW     = internalvector.BackendHNSW
)

Variables

This section is empty.

Functions

func NewMemoryStore

func NewMemoryStore() *internalvector.MemoryStore

Types

type Backend

type Backend = internalvector.Backend

type Config

type Config struct {
	Backend Backend
	DB      *DBHandle

	Dim                        int
	PgVectorCreateExtension    *bool
	PgVectorIndexMethod        string
	PgVectorHNSWM              int
	PgVectorHNSWEfConstruction int
	PgVectorIVFFlatLists       int
	QdrantHost                 string
	QdrantPort                 int
	QdrantAPIKey               string
	QdrantPrefix               string
	ChromaURL                  string
	ChromaAPIKey               string
	ChromaTenant               string
	ChromaDatabase             string
	// HNSWDir is the directory for HNSW index files (BackendHNSW only).
	// Defaults to <runtime_root>/data/hnsw via pkg/config helpers.
	HNSWDir string
}

type DBHandle

type DBHandle struct {
	DriverName    string
	DSN           string
	BusyTimeoutMS int
}

DBHandle is the public vector-facing database descriptor. It intentionally avoids leaking the engine's internal DB type while keeping enough information to reopen a compatible low-level handle when needed.

func NewDBHandle

func NewDBHandle(driverName, dsn string) *DBHandle

type Query

type Query = internalvector.Query

type Record

type Record = internalvector.Record

type SearchResult

type SearchResult = internalvector.SearchResult

type Store

type Store = internalvector.Store

func NewStore

func NewStore(ctx context.Context, cfg Config) (Store, error)

Jump to

Keyboard shortcuts

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