stores

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package stores defines the retrieval interfaces tokipe depends on. Concrete adapters (pgvector, mock) live in subdirectories; this file has zero third-party dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embedder

type Embedder interface {
	Embed(ctx context.Context, text string) ([]float32, error)
}

type VectorStore

type VectorStore interface {
	Search(ctx context.Context, vec []float32, topK int) ([]pipeline.Chunk, error)
}

Directories

Path Synopsis
Package mock provides in-memory, network-free test doubles for the stores.Embedder and stores.VectorStore interfaces.
Package mock provides in-memory, network-free test doubles for the stores.Embedder and stores.VectorStore interfaces.
pgvector module

Jump to

Keyboard shortcuts

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