embeddings

package
v0.9.23 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 2 Imported by: 2 modules, 1 package

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 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