embeddingv1

package
v0.0.0-...-d4d0d1c Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_teleport_embedding_v1_embedding_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Embedding

type Embedding struct {

	// EmbeddedKind is the kind of the embedded resource.
	EmbeddedKind string `protobuf:"bytes,1,opt,name=embedded_kind,json=embeddedKind,proto3" json:"embedded_kind,omitempty"`
	// EmbeddedId is the ID of the embedded resource.
	EmbeddedId string `protobuf:"bytes,2,opt,name=embedded_id,json=embeddedId,proto3" json:"embedded_id,omitempty"`
	// EmbeddedHash is the hash of the embedded resource after serialization.
	// This helps checking if the resource has changed and needs a new embedding.
	EmbeddedHash []byte `protobuf:"bytes,3,opt,name=embedded_hash,json=embeddedHash,proto3" json:"embedded_hash,omitempty"`
	// Vector is the embedding itself, as provided by the model.
	Vector []float64 `protobuf:"fixed64,4,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	// contains filtered or unexported fields
}

Embedding contains a Teleport resource embedding. Embeddings are small semantic representations of larger and more complex data. Embeddings can be compared, the smaller the distance between two vectors, the closer the concepts are. Teleport Assist embeds resources to perform semantic search.

func (*Embedding) Descriptor deprecated

func (*Embedding) Descriptor() ([]byte, []int)

Deprecated: Use Embedding.ProtoReflect.Descriptor instead.

func (*Embedding) GetEmbeddedHash

func (x *Embedding) GetEmbeddedHash() []byte

func (*Embedding) GetEmbeddedId

func (x *Embedding) GetEmbeddedId() string

func (*Embedding) GetEmbeddedKind

func (x *Embedding) GetEmbeddedKind() string

func (*Embedding) GetVector

func (x *Embedding) GetVector() []float64

func (*Embedding) ProtoMessage

func (*Embedding) ProtoMessage()

func (*Embedding) ProtoReflect

func (x *Embedding) ProtoReflect() protoreflect.Message

func (*Embedding) Reset

func (x *Embedding) Reset()

func (*Embedding) String

func (x *Embedding) String() string

Jump to

Keyboard shortcuts

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