embeddings

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelDimensions

func GetModelDimensions(modelName string) (int, error)

GetModelDimensions returns the vector dimensions for a known embedding model

func IsKnownModel

func IsKnownModel(modelName string) bool

IsKnownModel returns true if the model is in the registry

Types

type ModelInfo

type ModelInfo struct {
	Name       string
	Dimensions int
	Provider   string
	MaxTokens  int
	OSS        bool // true for open-source models
}

ModelInfo contains information about an embedding model

func GetModelInfo

func GetModelInfo(modelName string) (*ModelInfo, error)

GetModelInfo returns detailed information about a known embedding model

func GetOSSModels

func GetOSSModels() []ModelInfo

GetOSSModels returns all open-source embedding models

func ListKnownModels

func ListKnownModels() []ModelInfo

ListKnownModels returns a list of all known models

func ListModelsByProvider

func ListModelsByProvider(provider string) []ModelInfo

ListModelsByProvider returns models from a specific provider

Jump to

Keyboard shortcuts

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