embeddings

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Similarity

func Similarity(embed1 []float64, embed2 []float64) float64

Types

type Embedding

type Embedding [768]float64

func Generate

func Generate(text []string) ([]Embedding, error)

type Response

type Response struct {
	Model             string      `json:"model"`
	Embeddings        []Embedding `json:"embeddings"`
	Total_duration    float64     `json:"total_duration"`
	Load_duration     float64     `json:"load_duration"`
	Prompt_eval_count int         `json:"prompt_eval_count"`
}

Jump to

Keyboard shortcuts

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