embedding

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 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 Runner

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

func NewRunner

func NewRunner(store *store.Store, embeddingService ai.EmbeddingService) *Runner

NewRunner creates a vector embedding runner. Parameters optimized for 2C2G: smaller batch size reduces memory peaks, longer interval reduces CPU contention.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

Run starts the background task.

func (*Runner) RunOnce

func (r *Runner) RunOnce(ctx context.Context)

RunOnce processes memos once (for manual trigger).

Jump to

Keyboard shortcuts

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