searchruntime

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	ExampleIndex    *resource.ExampleIndex
	RunbookRegistry *runbooks.Registry
	RunbookIndex    *resource.RunbookIndex
	EIPRegistry     *eips.Registry
	EIPIndex        *resource.EIPIndex
	// contains filtered or unexported fields
}

Runtime holds the semantic search indices and embedder.

func Build

func Build(
	ctx context.Context,
	log logrus.FieldLogger,
	moduleRegistry *module.Registry,
	proxyService proxy.Service,
	cacheDir string,
) (*Runtime, error)

Build creates a new search runtime with example, runbook, and EIP indices. Embedding is provided by the proxy's remote embedding service. cacheDir enables a local filesystem cache for embedding vectors when non-empty.

func (*Runtime) Close

func (r *Runtime) Close() error

Close releases resources held by the runtime.

Jump to

Keyboard shortcuts

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