proto

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_butterfish_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AnnotatedEmbedding

type AnnotatedEmbedding struct {
	Start  uint64    `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // start index in bytes to the file chunk
	End    uint64    `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`     // end index in bytes to the file chunk
	Vector []float64 `protobuf:"fixed64,4,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	// contains filtered or unexported fields
}

func (*AnnotatedEmbedding) Descriptor deprecated

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

Deprecated: Use AnnotatedEmbedding.ProtoReflect.Descriptor instead.

func (*AnnotatedEmbedding) GetEnd

func (x *AnnotatedEmbedding) GetEnd() uint64

func (*AnnotatedEmbedding) GetStart

func (x *AnnotatedEmbedding) GetStart() uint64

func (*AnnotatedEmbedding) GetVector

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

func (*AnnotatedEmbedding) ProtoMessage

func (*AnnotatedEmbedding) ProtoMessage()

func (*AnnotatedEmbedding) ProtoReflect

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

func (*AnnotatedEmbedding) Reset

func (x *AnnotatedEmbedding) Reset()

func (*AnnotatedEmbedding) String

func (x *AnnotatedEmbedding) String() string

type DirectoryIndex

type DirectoryIndex struct {

	// string should be a relative path, e.g. "./foo.txt"
	Files map[string]*FileEmbeddings `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents the constituent files of a directory, this should map a relative path from the directory to a file within it (but not within a child dir).

func (*DirectoryIndex) Descriptor deprecated

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

Deprecated: Use DirectoryIndex.ProtoReflect.Descriptor instead.

func (*DirectoryIndex) GetFiles

func (x *DirectoryIndex) GetFiles() map[string]*FileEmbeddings

func (*DirectoryIndex) ProtoMessage

func (*DirectoryIndex) ProtoMessage()

func (*DirectoryIndex) ProtoReflect

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

func (*DirectoryIndex) Reset

func (x *DirectoryIndex) Reset()

func (*DirectoryIndex) String

func (x *DirectoryIndex) String() string

type FileEmbeddings

type FileEmbeddings struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // filename, relative path to the DirectoryIndex, e.g. ./foo
	// When the embedding was created, if an earlier timestamp than the file
	// edit time then the file should be re-embedded.
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Embeddings []*AnnotatedEmbedding  `protobuf:"bytes,3,rep,name=embeddings,proto3" json:"embeddings,omitempty"`
	// contains filtered or unexported fields
}

func (*FileEmbeddings) Descriptor deprecated

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

Deprecated: Use FileEmbeddings.ProtoReflect.Descriptor instead.

func (*FileEmbeddings) GetEmbeddings

func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding

func (*FileEmbeddings) GetPath

func (x *FileEmbeddings) GetPath() string

func (*FileEmbeddings) GetUpdatedAt

func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp

func (*FileEmbeddings) ProtoMessage

func (*FileEmbeddings) ProtoMessage()

func (*FileEmbeddings) ProtoReflect

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

func (*FileEmbeddings) Reset

func (x *FileEmbeddings) Reset()

func (*FileEmbeddings) String

func (x *FileEmbeddings) String() string

Jump to

Keyboard shortcuts

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