embedding

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package embedding defines common types for embedding operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	// Model is the model name to use for embeddings.
	Model string
	// Input is the list of text inputs to embed.
	Input []string
}

Request represents an embedding request.

type Response

type Response struct {
	// Model is the model used for the embeddings.
	Model string
	// Embeddings contains the embedding vectors (one per input).
	Embeddings [][]float64
}

Response represents an embedding response.

Jump to

Keyboard shortcuts

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