embeddings

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 9 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

View Source
var ListCmd = &cobra.Command{
	Use:     "list [COLLECTION]",
	Aliases: []string{"ls"},
	Short:   "List available embedding models",
	Long: `List all available embedding models for text and image vectorization.

By default, shows all embeddings available for any collection.
If a specific collection is provided, shows embeddings configured for that collection.

Embeddings are grouped by provider (OpenAI, Cohere, Hugging Face, etc.) and type (text/image).`,
	Example: `  # List all available embeddings
  weave embeddings list
  weave emb ls

  # List embeddings for a specific collection
  weave embeddings list MyCollection`,
	RunE: runList,
}

ListCmd represents the embeddings list command

Functions

func IsAPIKeySet

func IsAPIKeySet(envVars string) bool

IsAPIKeySet checks if required API key is set in environment

Types

type EmbeddingModel

type EmbeddingModel struct {
	Name               string
	Provider           string
	Type               string // "text" or "image" or "multimodal"
	Dimensions         int
	APIKeyEnv          string // Environment variable name for API key
	Description        string
	Module             string   // Weaviate module name
	SupportedDatabases []string // Database types that support this embedding
}

EmbeddingModel represents an embedding model with its metadata

func GetAllEmbeddingModels

func GetAllEmbeddingModels() []EmbeddingModel

GetAllEmbeddingModels returns all available embedding models

Jump to

Keyboard shortcuts

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