embeddings

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 9 Imported by: 0

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