Documentation
¶
Index ¶
- Variables
- type Embedding
- func (*Embedding) Descriptor() ([]byte, []int)deprecated
- func (x *Embedding) GetEmbeddedHash() []byte
- func (x *Embedding) GetEmbeddedId() string
- func (x *Embedding) GetEmbeddedKind() string
- func (x *Embedding) GetVector() []float64
- func (*Embedding) ProtoMessage()
- func (x *Embedding) ProtoReflect() protoreflect.Message
- func (x *Embedding) Reset()
- func (x *Embedding) String() string
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) GetEmbeddedHash ¶
func (*Embedding) GetEmbeddedId ¶
func (*Embedding) GetEmbeddedKind ¶
func (*Embedding) ProtoMessage ¶
func (*Embedding) ProtoMessage()
func (*Embedding) ProtoReflect ¶
func (x *Embedding) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.