Documentation
¶
Overview ¶
Package embedding provides functions to use OpenAI's Embeddings API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
One(input string) (Vector, error)
Array(inputs ...string) ([]Vector, error)
// Dimensions returns the number of dimensions used for embeddings.
Dimensions() int
// SetDimensions sets the number of dimensions used for embeddings.
SetDimensions(int)
}
Service is the service for the Embeddings API.
Click to show internal directories.
Click to hide internal directories.