embeddings

package
v0.0.0-...-5fa46ea Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToVector

func ImageToVector(url string) (*[][]float32, error)

func TextToVector

func TextToVector(input string) (*[][]float32, error)

Types

type Vector

type Vector struct {
	Embeddings [][]float32 `json:"embeddings"`
	Model      string      `json:"model"`
	Usage      interface{} `json:"usage"`
	Error      string      `json:"error"`
	Detail     string      `json:"detail"`
}

Jump to

Keyboard shortcuts

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