models

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureProjection

type FeatureProjection struct {
	Vector []float32 `json:"vector"`
}

type Interpretation

type Interpretation struct {
	Source []*InterpretationSource `json:"source"`
}

type InterpretationSource

type InterpretationSource struct {
	Concept    string  `json:"concept,omitempty"`
	Occurrence uint64  `json:"occurrence,omitempty"`
	Weight     float64 `json:"weight,omitempty"`
}

type NearestNeighbor

type NearestNeighbor struct {
	Concept  string    `json:"concept,omitempty"`
	Distance float32   `json:"distance,omitempty"`
	Vector   []float32 `json:"vector"`
}

type NearestNeighbors

type NearestNeighbors struct {
	Neighbors []*NearestNeighbor `json:"neighbors"`
}

type SemanticPath

type SemanticPath struct {
	Path []*SemanticPathElement `json:"path"`
}

type SemanticPathElement

type SemanticPathElement struct {
	Concept            string   `json:"concept,omitempty"`
	DistanceToNext     *float32 `json:"distanceToNext,omitempty"`
	DistanceToPrevious *float32 `json:"distanceToPrevious,omitempty"`
	DistanceToQuery    float32  `json:"distanceToQuery,omitempty"`
	DistanceToResult   float32  `json:"distanceToResult,omitempty"`
}

Jump to

Keyboard shortcuts

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