embeddingutil

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyManagedEmbedding

func ApplyManagedEmbedding(node *storage.Node, embeddings [][]float32, model string, dimensions int, embeddedAt time.Time)

ApplyManagedEmbedding writes worker-compatible embedding payload to node fields.

func BuildText

func BuildText(properties map[string]interface{}, labels []string, opts *EmbedTextOptions) string

BuildText creates canonical embedding text from node properties and labels.

func InvalidateManagedEmbeddings

func InvalidateManagedEmbeddings(node *storage.Node)

InvalidateManagedEmbeddings clears worker-managed embedding state on a node.

func IsMetadataPropertyKey

func IsMetadataPropertyKey(key string) bool

IsMetadataPropertyKey reports whether a property key is internal embedding metadata.

Types

type EmbedTextOptions

type EmbedTextOptions struct {
	Include       []string
	Exclude       []string
	IncludeLabels bool
}

EmbedTextOptions controls which properties and labels are used when building embedding text.

func EmbedTextOptionsFromConfig

func EmbedTextOptionsFromConfig(cfg *config.Config) *EmbedTextOptions

EmbedTextOptionsFromConfig maps runtime embedding worker config to text builder options.

func EmbedTextOptionsFromFields

func EmbedTextOptionsFromFields(include []string, exclude []string, includeLabels bool) *EmbedTextOptions

EmbedTextOptionsFromFields builds text options from raw include/exclude settings.

Jump to

Keyboard shortcuts

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