v1

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_vector_store_proto protoreflect.FileDescriptor
View Source
var VectorStoreInternalService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "llmariner.vector_store.v1.VectorStoreInternalService",
	HandlerType: (*VectorStoreInternalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SearchVectorStore",
			Handler:    _VectorStoreInternalService_SearchVectorStore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/vector_store.proto",
}

VectorStoreInternalService_ServiceDesc is the grpc.ServiceDesc for VectorStoreInternalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var VectorStoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "llmariner.vector_store.v1.VectorStoreService",
	HandlerType: (*VectorStoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVectorStore",
			Handler:    _VectorStoreService_CreateVectorStore_Handler,
		},
		{
			MethodName: "ListVectorStores",
			Handler:    _VectorStoreService_ListVectorStores_Handler,
		},
		{
			MethodName: "GetVectorStore",
			Handler:    _VectorStoreService_GetVectorStore_Handler,
		},
		{
			MethodName: "GetVectorStoreByName",
			Handler:    _VectorStoreService_GetVectorStoreByName_Handler,
		},
		{
			MethodName: "UpdateVectorStore",
			Handler:    _VectorStoreService_UpdateVectorStore_Handler,
		},
		{
			MethodName: "DeleteVectorStore",
			Handler:    _VectorStoreService_DeleteVectorStore_Handler,
		},
		{
			MethodName: "CreateVectorStoreFile",
			Handler:    _VectorStoreService_CreateVectorStoreFile_Handler,
		},
		{
			MethodName: "ListVectorStoreFiles",
			Handler:    _VectorStoreService_ListVectorStoreFiles_Handler,
		},
		{
			MethodName: "GetVectorStoreFile",
			Handler:    _VectorStoreService_GetVectorStoreFile_Handler,
		},
		{
			MethodName: "DeleteVectorStoreFile",
			Handler:    _VectorStoreService_DeleteVectorStoreFile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/vector_store.proto",
}

VectorStoreService_ServiceDesc is the grpc.ServiceDesc for VectorStoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVectorStoreInternalServiceServer

func RegisterVectorStoreInternalServiceServer(s grpc.ServiceRegistrar, srv VectorStoreInternalServiceServer)

func RegisterVectorStoreServiceHandler

func RegisterVectorStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterVectorStoreServiceHandler registers the http handlers for service VectorStoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterVectorStoreServiceHandlerClient

func RegisterVectorStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VectorStoreServiceClient) error

RegisterVectorStoreServiceHandlerClient registers the http handlers for service VectorStoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VectorStoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VectorStoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VectorStoreServiceClient" to call the correct interceptors.

func RegisterVectorStoreServiceHandlerFromEndpoint

func RegisterVectorStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterVectorStoreServiceHandlerFromEndpoint is same as RegisterVectorStoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterVectorStoreServiceHandlerServer

func RegisterVectorStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VectorStoreServiceServer) error

RegisterVectorStoreServiceHandlerServer registers the http handlers for service VectorStoreService to "mux". UnaryRPC :call VectorStoreServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVectorStoreServiceHandlerFromEndpoint instead.

func RegisterVectorStoreServiceServer

func RegisterVectorStoreServiceServer(s grpc.ServiceRegistrar, srv VectorStoreServiceServer)

Types

type ChunkingStrategy

type ChunkingStrategy struct {
	Type   string                   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Static *ChunkingStrategy_Static `protobuf:"bytes,2,opt,name=static,proto3" json:"static,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkingStrategy) Descriptor deprecated

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

Deprecated: Use ChunkingStrategy.ProtoReflect.Descriptor instead.

func (*ChunkingStrategy) GetStatic

func (x *ChunkingStrategy) GetStatic() *ChunkingStrategy_Static

func (*ChunkingStrategy) GetType

func (x *ChunkingStrategy) GetType() string

func (*ChunkingStrategy) ProtoMessage

func (*ChunkingStrategy) ProtoMessage()

func (*ChunkingStrategy) ProtoReflect

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

func (*ChunkingStrategy) Reset

func (x *ChunkingStrategy) Reset()

func (*ChunkingStrategy) String

func (x *ChunkingStrategy) String() string

type ChunkingStrategy_Static

type ChunkingStrategy_Static struct {
	MaxChunkSizeTokens int64 `protobuf:"varint,1,opt,name=max_chunk_size_tokens,json=maxChunkSizeTokens,proto3" json:"max_chunk_size_tokens,omitempty"`
	ChunkOverlapTokens int64 `protobuf:"varint,2,opt,name=chunk_overlap_tokens,json=chunkOverlapTokens,proto3" json:"chunk_overlap_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkingStrategy_Static) Descriptor deprecated

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

Deprecated: Use ChunkingStrategy_Static.ProtoReflect.Descriptor instead.

func (*ChunkingStrategy_Static) GetChunkOverlapTokens

func (x *ChunkingStrategy_Static) GetChunkOverlapTokens() int64

func (*ChunkingStrategy_Static) GetMaxChunkSizeTokens

func (x *ChunkingStrategy_Static) GetMaxChunkSizeTokens() int64

func (*ChunkingStrategy_Static) ProtoMessage

func (*ChunkingStrategy_Static) ProtoMessage()

func (*ChunkingStrategy_Static) ProtoReflect

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

func (*ChunkingStrategy_Static) Reset

func (x *ChunkingStrategy_Static) Reset()

func (*ChunkingStrategy_Static) String

func (x *ChunkingStrategy_Static) String() string

type CreateVectorStoreFileRequest

type CreateVectorStoreFileRequest struct {
	VectorStoreId    string            `protobuf:"bytes,1,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	FileId           string            `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	ChunkingStrategy *ChunkingStrategy `protobuf:"bytes,3,opt,name=chunking_strategy,json=chunkingStrategy,proto3" json:"chunking_strategy,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVectorStoreFileRequest) Descriptor deprecated

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

Deprecated: Use CreateVectorStoreFileRequest.ProtoReflect.Descriptor instead.

func (*CreateVectorStoreFileRequest) GetChunkingStrategy

func (x *CreateVectorStoreFileRequest) GetChunkingStrategy() *ChunkingStrategy

func (*CreateVectorStoreFileRequest) GetFileId

func (x *CreateVectorStoreFileRequest) GetFileId() string

func (*CreateVectorStoreFileRequest) GetVectorStoreId

func (x *CreateVectorStoreFileRequest) GetVectorStoreId() string

func (*CreateVectorStoreFileRequest) ProtoMessage

func (*CreateVectorStoreFileRequest) ProtoMessage()

func (*CreateVectorStoreFileRequest) ProtoReflect

func (*CreateVectorStoreFileRequest) Reset

func (x *CreateVectorStoreFileRequest) Reset()

func (*CreateVectorStoreFileRequest) String

type CreateVectorStoreRequest

type CreateVectorStoreRequest struct {
	FileIds          []string          `protobuf:"bytes,1,rep,name=file_ids,json=fileIds,proto3" json:"file_ids,omitempty"`
	Name             string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ExpiresAfter     *ExpiresAfter     `protobuf:"bytes,3,opt,name=expires_after,json=expiresAfter,proto3" json:"expires_after,omitempty"`
	ChunkingStrategy *ChunkingStrategy `protobuf:"bytes,4,opt,name=chunking_strategy,json=chunkingStrategy,proto3" json:"chunking_strategy,omitempty"`
	Metadata         map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateVectorStoreRequest) Descriptor deprecated

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

Deprecated: Use CreateVectorStoreRequest.ProtoReflect.Descriptor instead.

func (*CreateVectorStoreRequest) GetChunkingStrategy

func (x *CreateVectorStoreRequest) GetChunkingStrategy() *ChunkingStrategy

func (*CreateVectorStoreRequest) GetExpiresAfter

func (x *CreateVectorStoreRequest) GetExpiresAfter() *ExpiresAfter

func (*CreateVectorStoreRequest) GetFileIds

func (x *CreateVectorStoreRequest) GetFileIds() []string

func (*CreateVectorStoreRequest) GetMetadata

func (x *CreateVectorStoreRequest) GetMetadata() map[string]string

func (*CreateVectorStoreRequest) GetName

func (x *CreateVectorStoreRequest) GetName() string

func (*CreateVectorStoreRequest) ProtoMessage

func (*CreateVectorStoreRequest) ProtoMessage()

func (*CreateVectorStoreRequest) ProtoReflect

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

func (*CreateVectorStoreRequest) Reset

func (x *CreateVectorStoreRequest) Reset()

func (*CreateVectorStoreRequest) String

func (x *CreateVectorStoreRequest) String() string

type DeleteVectorStoreFileRequest

type DeleteVectorStoreFileRequest struct {
	VectorStoreId string `protobuf:"bytes,1,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	FileId        string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorStoreFileRequest) Descriptor deprecated

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

Deprecated: Use DeleteVectorStoreFileRequest.ProtoReflect.Descriptor instead.

func (*DeleteVectorStoreFileRequest) GetFileId

func (x *DeleteVectorStoreFileRequest) GetFileId() string

func (*DeleteVectorStoreFileRequest) GetVectorStoreId

func (x *DeleteVectorStoreFileRequest) GetVectorStoreId() string

func (*DeleteVectorStoreFileRequest) ProtoMessage

func (*DeleteVectorStoreFileRequest) ProtoMessage()

func (*DeleteVectorStoreFileRequest) ProtoReflect

func (*DeleteVectorStoreFileRequest) Reset

func (x *DeleteVectorStoreFileRequest) Reset()

func (*DeleteVectorStoreFileRequest) String

type DeleteVectorStoreFileResponse

type DeleteVectorStoreFileResponse struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Object  string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	Deleted bool   `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorStoreFileResponse) Descriptor deprecated

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

Deprecated: Use DeleteVectorStoreFileResponse.ProtoReflect.Descriptor instead.

func (*DeleteVectorStoreFileResponse) GetDeleted

func (x *DeleteVectorStoreFileResponse) GetDeleted() bool

func (*DeleteVectorStoreFileResponse) GetId

func (*DeleteVectorStoreFileResponse) GetObject

func (x *DeleteVectorStoreFileResponse) GetObject() string

func (*DeleteVectorStoreFileResponse) ProtoMessage

func (*DeleteVectorStoreFileResponse) ProtoMessage()

func (*DeleteVectorStoreFileResponse) ProtoReflect

func (*DeleteVectorStoreFileResponse) Reset

func (x *DeleteVectorStoreFileResponse) Reset()

func (*DeleteVectorStoreFileResponse) String

type DeleteVectorStoreRequest

type DeleteVectorStoreRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorStoreRequest) Descriptor deprecated

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

Deprecated: Use DeleteVectorStoreRequest.ProtoReflect.Descriptor instead.

func (*DeleteVectorStoreRequest) GetId

func (x *DeleteVectorStoreRequest) GetId() string

func (*DeleteVectorStoreRequest) ProtoMessage

func (*DeleteVectorStoreRequest) ProtoMessage()

func (*DeleteVectorStoreRequest) ProtoReflect

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

func (*DeleteVectorStoreRequest) Reset

func (x *DeleteVectorStoreRequest) Reset()

func (*DeleteVectorStoreRequest) String

func (x *DeleteVectorStoreRequest) String() string

type DeleteVectorStoreResponse

type DeleteVectorStoreResponse struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Object  string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	Deleted bool   `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorStoreResponse) Descriptor deprecated

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

Deprecated: Use DeleteVectorStoreResponse.ProtoReflect.Descriptor instead.

func (*DeleteVectorStoreResponse) GetDeleted

func (x *DeleteVectorStoreResponse) GetDeleted() bool

func (*DeleteVectorStoreResponse) GetId

func (x *DeleteVectorStoreResponse) GetId() string

func (*DeleteVectorStoreResponse) GetObject

func (x *DeleteVectorStoreResponse) GetObject() string

func (*DeleteVectorStoreResponse) ProtoMessage

func (*DeleteVectorStoreResponse) ProtoMessage()

func (*DeleteVectorStoreResponse) ProtoReflect

func (*DeleteVectorStoreResponse) Reset

func (x *DeleteVectorStoreResponse) Reset()

func (*DeleteVectorStoreResponse) String

func (x *DeleteVectorStoreResponse) String() string

type ExpiresAfter

type ExpiresAfter struct {

	// Anchor timestamp after which the expiration policy applies. Supported anchors: last_active_at.
	Anchor string `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"`
	// The number of days after the anchor time that the vector store will expire.
	Days int64 `protobuf:"varint,2,opt,name=days,proto3" json:"days,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpiresAfter) Descriptor deprecated

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

Deprecated: Use ExpiresAfter.ProtoReflect.Descriptor instead.

func (*ExpiresAfter) GetAnchor

func (x *ExpiresAfter) GetAnchor() string

func (*ExpiresAfter) GetDays

func (x *ExpiresAfter) GetDays() int64

func (*ExpiresAfter) ProtoMessage

func (*ExpiresAfter) ProtoMessage()

func (*ExpiresAfter) ProtoReflect

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

func (*ExpiresAfter) Reset

func (x *ExpiresAfter) Reset()

func (*ExpiresAfter) String

func (x *ExpiresAfter) String() string

type GetVectorStoreByNameRequest

type GetVectorStoreByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVectorStoreByNameRequest) Descriptor deprecated

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

Deprecated: Use GetVectorStoreByNameRequest.ProtoReflect.Descriptor instead.

func (*GetVectorStoreByNameRequest) GetName

func (x *GetVectorStoreByNameRequest) GetName() string

func (*GetVectorStoreByNameRequest) ProtoMessage

func (*GetVectorStoreByNameRequest) ProtoMessage()

func (*GetVectorStoreByNameRequest) ProtoReflect

func (*GetVectorStoreByNameRequest) Reset

func (x *GetVectorStoreByNameRequest) Reset()

func (*GetVectorStoreByNameRequest) String

func (x *GetVectorStoreByNameRequest) String() string

type GetVectorStoreFileRequest

type GetVectorStoreFileRequest struct {
	VectorStoreId string `protobuf:"bytes,1,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	FileId        string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVectorStoreFileRequest) Descriptor deprecated

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

Deprecated: Use GetVectorStoreFileRequest.ProtoReflect.Descriptor instead.

func (*GetVectorStoreFileRequest) GetFileId

func (x *GetVectorStoreFileRequest) GetFileId() string

func (*GetVectorStoreFileRequest) GetVectorStoreId

func (x *GetVectorStoreFileRequest) GetVectorStoreId() string

func (*GetVectorStoreFileRequest) ProtoMessage

func (*GetVectorStoreFileRequest) ProtoMessage()

func (*GetVectorStoreFileRequest) ProtoReflect

func (*GetVectorStoreFileRequest) Reset

func (x *GetVectorStoreFileRequest) Reset()

func (*GetVectorStoreFileRequest) String

func (x *GetVectorStoreFileRequest) String() string

type GetVectorStoreRequest

type GetVectorStoreRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVectorStoreRequest) Descriptor deprecated

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

Deprecated: Use GetVectorStoreRequest.ProtoReflect.Descriptor instead.

func (*GetVectorStoreRequest) GetId

func (x *GetVectorStoreRequest) GetId() string

func (*GetVectorStoreRequest) ProtoMessage

func (*GetVectorStoreRequest) ProtoMessage()

func (*GetVectorStoreRequest) ProtoReflect

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

func (*GetVectorStoreRequest) Reset

func (x *GetVectorStoreRequest) Reset()

func (*GetVectorStoreRequest) String

func (x *GetVectorStoreRequest) String() string

type ListVectorStoreFilesRequest

type ListVectorStoreFilesRequest struct {
	VectorStoreId string `protobuf:"bytes,1,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	Limit         int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Order         string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"`
	After         string `protobuf:"bytes,4,opt,name=after,proto3" json:"after,omitempty"`
	Berfore       string `protobuf:"bytes,5,opt,name=berfore,proto3" json:"berfore,omitempty"`
	// Filter by file status. One of in_progress, completed, failed, cancelled.
	Filter string `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVectorStoreFilesRequest) Descriptor deprecated

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

Deprecated: Use ListVectorStoreFilesRequest.ProtoReflect.Descriptor instead.

func (*ListVectorStoreFilesRequest) GetAfter

func (x *ListVectorStoreFilesRequest) GetAfter() string

func (*ListVectorStoreFilesRequest) GetBerfore

func (x *ListVectorStoreFilesRequest) GetBerfore() string

func (*ListVectorStoreFilesRequest) GetFilter

func (x *ListVectorStoreFilesRequest) GetFilter() string

func (*ListVectorStoreFilesRequest) GetLimit

func (x *ListVectorStoreFilesRequest) GetLimit() int32

func (*ListVectorStoreFilesRequest) GetOrder

func (x *ListVectorStoreFilesRequest) GetOrder() string

func (*ListVectorStoreFilesRequest) GetVectorStoreId

func (x *ListVectorStoreFilesRequest) GetVectorStoreId() string

func (*ListVectorStoreFilesRequest) ProtoMessage

func (*ListVectorStoreFilesRequest) ProtoMessage()

func (*ListVectorStoreFilesRequest) ProtoReflect

func (*ListVectorStoreFilesRequest) Reset

func (x *ListVectorStoreFilesRequest) Reset()

func (*ListVectorStoreFilesRequest) String

func (x *ListVectorStoreFilesRequest) String() string

type ListVectorStoreFilesResponse

type ListVectorStoreFilesResponse struct {
	Object  string             `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Data    []*VectorStoreFile `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	FirstId string             `protobuf:"bytes,3,opt,name=first_id,json=firstId,proto3" json:"first_id,omitempty"`
	LastId  string             `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	HasMore bool               `protobuf:"varint,5,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVectorStoreFilesResponse) Descriptor deprecated

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

Deprecated: Use ListVectorStoreFilesResponse.ProtoReflect.Descriptor instead.

func (*ListVectorStoreFilesResponse) GetData

func (*ListVectorStoreFilesResponse) GetFirstId

func (x *ListVectorStoreFilesResponse) GetFirstId() string

func (*ListVectorStoreFilesResponse) GetHasMore

func (x *ListVectorStoreFilesResponse) GetHasMore() bool

func (*ListVectorStoreFilesResponse) GetLastId

func (x *ListVectorStoreFilesResponse) GetLastId() string

func (*ListVectorStoreFilesResponse) GetObject

func (x *ListVectorStoreFilesResponse) GetObject() string

func (*ListVectorStoreFilesResponse) ProtoMessage

func (*ListVectorStoreFilesResponse) ProtoMessage()

func (*ListVectorStoreFilesResponse) ProtoReflect

func (*ListVectorStoreFilesResponse) Reset

func (x *ListVectorStoreFilesResponse) Reset()

func (*ListVectorStoreFilesResponse) String

type ListVectorStoresRequest

type ListVectorStoresRequest struct {
	Limit   int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Order   string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	After   string `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"`
	Berfore string `protobuf:"bytes,4,opt,name=berfore,proto3" json:"berfore,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVectorStoresRequest) Descriptor deprecated

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

Deprecated: Use ListVectorStoresRequest.ProtoReflect.Descriptor instead.

func (*ListVectorStoresRequest) GetAfter

func (x *ListVectorStoresRequest) GetAfter() string

func (*ListVectorStoresRequest) GetBerfore

func (x *ListVectorStoresRequest) GetBerfore() string

func (*ListVectorStoresRequest) GetLimit

func (x *ListVectorStoresRequest) GetLimit() int32

func (*ListVectorStoresRequest) GetOrder

func (x *ListVectorStoresRequest) GetOrder() string

func (*ListVectorStoresRequest) ProtoMessage

func (*ListVectorStoresRequest) ProtoMessage()

func (*ListVectorStoresRequest) ProtoReflect

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

func (*ListVectorStoresRequest) Reset

func (x *ListVectorStoresRequest) Reset()

func (*ListVectorStoresRequest) String

func (x *ListVectorStoresRequest) String() string

type ListVectorStoresResponse

type ListVectorStoresResponse struct {
	Object  string         `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Data    []*VectorStore `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	FirstId string         `protobuf:"bytes,3,opt,name=first_id,json=firstId,proto3" json:"first_id,omitempty"`
	LastId  string         `protobuf:"bytes,4,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"`
	HasMore bool           `protobuf:"varint,5,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVectorStoresResponse) Descriptor deprecated

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

Deprecated: Use ListVectorStoresResponse.ProtoReflect.Descriptor instead.

func (*ListVectorStoresResponse) GetData

func (x *ListVectorStoresResponse) GetData() []*VectorStore

func (*ListVectorStoresResponse) GetFirstId

func (x *ListVectorStoresResponse) GetFirstId() string

func (*ListVectorStoresResponse) GetHasMore

func (x *ListVectorStoresResponse) GetHasMore() bool

func (*ListVectorStoresResponse) GetLastId

func (x *ListVectorStoresResponse) GetLastId() string

func (*ListVectorStoresResponse) GetObject

func (x *ListVectorStoresResponse) GetObject() string

func (*ListVectorStoresResponse) ProtoMessage

func (*ListVectorStoresResponse) ProtoMessage()

func (*ListVectorStoresResponse) ProtoReflect

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

func (*ListVectorStoresResponse) Reset

func (x *ListVectorStoresResponse) Reset()

func (*ListVectorStoresResponse) String

func (x *ListVectorStoresResponse) String() string

type SearchVectorStoreRequest

type SearchVectorStoreRequest struct {
	VectorStoreId string `protobuf:"bytes,1,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	Query         string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	NumDocuments  int32  `protobuf:"varint,3,opt,name=num_documents,json=numDocuments,proto3" json:"num_documents,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchVectorStoreRequest) Descriptor deprecated

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

Deprecated: Use SearchVectorStoreRequest.ProtoReflect.Descriptor instead.

func (*SearchVectorStoreRequest) GetNumDocuments

func (x *SearchVectorStoreRequest) GetNumDocuments() int32

func (*SearchVectorStoreRequest) GetQuery

func (x *SearchVectorStoreRequest) GetQuery() string

func (*SearchVectorStoreRequest) GetVectorStoreId

func (x *SearchVectorStoreRequest) GetVectorStoreId() string

func (*SearchVectorStoreRequest) ProtoMessage

func (*SearchVectorStoreRequest) ProtoMessage()

func (*SearchVectorStoreRequest) ProtoReflect

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

func (*SearchVectorStoreRequest) Reset

func (x *SearchVectorStoreRequest) Reset()

func (*SearchVectorStoreRequest) String

func (x *SearchVectorStoreRequest) String() string

type SearchVectorStoreResponse

type SearchVectorStoreResponse struct {
	Documents []string `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchVectorStoreResponse) Descriptor deprecated

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

Deprecated: Use SearchVectorStoreResponse.ProtoReflect.Descriptor instead.

func (*SearchVectorStoreResponse) GetDocuments

func (x *SearchVectorStoreResponse) GetDocuments() []string

func (*SearchVectorStoreResponse) ProtoMessage

func (*SearchVectorStoreResponse) ProtoMessage()

func (*SearchVectorStoreResponse) ProtoReflect

func (*SearchVectorStoreResponse) Reset

func (x *SearchVectorStoreResponse) Reset()

func (*SearchVectorStoreResponse) String

func (x *SearchVectorStoreResponse) String() string

type UnimplementedVectorStoreInternalServiceServer

type UnimplementedVectorStoreInternalServiceServer struct {
}

UnimplementedVectorStoreInternalServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVectorStoreInternalServiceServer) SearchVectorStore

type UnimplementedVectorStoreServiceServer

type UnimplementedVectorStoreServiceServer struct {
}

UnimplementedVectorStoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVectorStoreServiceServer) CreateVectorStore

func (UnimplementedVectorStoreServiceServer) CreateVectorStoreFile

func (UnimplementedVectorStoreServiceServer) DeleteVectorStore

func (UnimplementedVectorStoreServiceServer) GetVectorStore

func (UnimplementedVectorStoreServiceServer) GetVectorStoreByName

func (UnimplementedVectorStoreServiceServer) GetVectorStoreFile

func (UnimplementedVectorStoreServiceServer) ListVectorStoreFiles

func (UnimplementedVectorStoreServiceServer) ListVectorStores

func (UnimplementedVectorStoreServiceServer) UpdateVectorStore

type UnsafeVectorStoreInternalServiceServer

type UnsafeVectorStoreInternalServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVectorStoreInternalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VectorStoreInternalServiceServer will result in compilation errors.

type UnsafeVectorStoreServiceServer

type UnsafeVectorStoreServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVectorStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VectorStoreServiceServer will result in compilation errors.

type UpdateVectorStoreRequest

type UpdateVectorStoreRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// string or null.
	Name         string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ExpiresAfter *ExpiresAfter     `protobuf:"bytes,3,opt,name=expires_after,json=expiresAfter,proto3" json:"expires_after,omitempty"`
	Metadata     map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateVectorStoreRequest) Descriptor deprecated

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

Deprecated: Use UpdateVectorStoreRequest.ProtoReflect.Descriptor instead.

func (*UpdateVectorStoreRequest) GetExpiresAfter

func (x *UpdateVectorStoreRequest) GetExpiresAfter() *ExpiresAfter

func (*UpdateVectorStoreRequest) GetId

func (x *UpdateVectorStoreRequest) GetId() string

func (*UpdateVectorStoreRequest) GetMetadata

func (x *UpdateVectorStoreRequest) GetMetadata() map[string]string

func (*UpdateVectorStoreRequest) GetName

func (x *UpdateVectorStoreRequest) GetName() string

func (*UpdateVectorStoreRequest) ProtoMessage

func (*UpdateVectorStoreRequest) ProtoMessage()

func (*UpdateVectorStoreRequest) ProtoReflect

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

func (*UpdateVectorStoreRequest) Reset

func (x *UpdateVectorStoreRequest) Reset()

func (*UpdateVectorStoreRequest) String

func (x *UpdateVectorStoreRequest) String() string

type VectorStore

type VectorStore struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	// The Unix timestamp (in seconds) for when the vector store was created.
	CreatedAt int64  `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Name      string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The total number of bytes used by the files in the vector store.
	UsageBytes int64                   `protobuf:"varint,5,opt,name=usage_bytes,json=usageBytes,proto3" json:"usage_bytes,omitempty"`
	FileCounts *VectorStore_FileCounts `protobuf:"bytes,6,opt,name=file_counts,json=fileCounts,proto3" json:"file_counts,omitempty"`
	// The status of the vector store, which can be either expired, in_progress, or completed.
	// A status of completed indicates that the vector store is ready for use.
	Status       string        `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	ExpiresAfter *ExpiresAfter `protobuf:"bytes,8,opt,name=expires_after,json=expiresAfter,proto3" json:"expires_after,omitempty"`
	// integer or null. The Unix timestamp (in seconds) for when the vector store will expire.
	ExpiresAt int64 `protobuf:"varint,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// integer or null. The Unix timestamp (in seconds) for when the vector store was last active.
	LastActiveAt int64             `protobuf:"varint,10,opt,name=last_active_at,json=lastActiveAt,proto3" json:"last_active_at,omitempty"`
	Metadata     map[string]string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VectorStore) Descriptor deprecated

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

Deprecated: Use VectorStore.ProtoReflect.Descriptor instead.

func (*VectorStore) GetCreatedAt

func (x *VectorStore) GetCreatedAt() int64

func (*VectorStore) GetExpiresAfter

func (x *VectorStore) GetExpiresAfter() *ExpiresAfter

func (*VectorStore) GetExpiresAt

func (x *VectorStore) GetExpiresAt() int64

func (*VectorStore) GetFileCounts

func (x *VectorStore) GetFileCounts() *VectorStore_FileCounts

func (*VectorStore) GetId

func (x *VectorStore) GetId() string

func (*VectorStore) GetLastActiveAt

func (x *VectorStore) GetLastActiveAt() int64

func (*VectorStore) GetMetadata

func (x *VectorStore) GetMetadata() map[string]string

func (*VectorStore) GetName

func (x *VectorStore) GetName() string

func (*VectorStore) GetObject

func (x *VectorStore) GetObject() string

func (*VectorStore) GetStatus

func (x *VectorStore) GetStatus() string

func (*VectorStore) GetUsageBytes

func (x *VectorStore) GetUsageBytes() int64

func (*VectorStore) ProtoMessage

func (*VectorStore) ProtoMessage()

func (*VectorStore) ProtoReflect

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

func (*VectorStore) Reset

func (x *VectorStore) Reset()

func (*VectorStore) String

func (x *VectorStore) String() string

type VectorStoreFile

type VectorStoreFile struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	// The total vector store usage in bytes. Note that this may be different from the original file size.
	UsageBytes int64 `protobuf:"varint,3,opt,name=usage_bytes,json=usageBytes,proto3" json:"usage_bytes,omitempty"`
	// The Unix timestamp (in seconds) for when the vector store file was created.
	CreatedAt     int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	VectorStoreId string `protobuf:"bytes,5,opt,name=vector_store_id,json=vectorStoreId,proto3" json:"vector_store_id,omitempty"`
	// The status of the vector store file, which can be either in_progress, completed, cancelled, or failed.
	// The status completed indicates that the vector store file is ready for use.
	Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// Error or null.
	LastError        *VectorStoreFile_Error `protobuf:"bytes,7,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"`
	ChunkingStrategy *ChunkingStrategy      `protobuf:"bytes,8,opt,name=chunking_strategy,json=chunkingStrategy,proto3" json:"chunking_strategy,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorStoreFile) Descriptor deprecated

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

Deprecated: Use VectorStoreFile.ProtoReflect.Descriptor instead.

func (*VectorStoreFile) GetChunkingStrategy

func (x *VectorStoreFile) GetChunkingStrategy() *ChunkingStrategy

func (*VectorStoreFile) GetCreatedAt

func (x *VectorStoreFile) GetCreatedAt() int64

func (*VectorStoreFile) GetId

func (x *VectorStoreFile) GetId() string

func (*VectorStoreFile) GetLastError

func (x *VectorStoreFile) GetLastError() *VectorStoreFile_Error

func (*VectorStoreFile) GetObject

func (x *VectorStoreFile) GetObject() string

func (*VectorStoreFile) GetStatus

func (x *VectorStoreFile) GetStatus() string

func (*VectorStoreFile) GetUsageBytes

func (x *VectorStoreFile) GetUsageBytes() int64

func (*VectorStoreFile) GetVectorStoreId

func (x *VectorStoreFile) GetVectorStoreId() string

func (*VectorStoreFile) ProtoMessage

func (*VectorStoreFile) ProtoMessage()

func (*VectorStoreFile) ProtoReflect

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

func (*VectorStoreFile) Reset

func (x *VectorStoreFile) Reset()

func (*VectorStoreFile) String

func (x *VectorStoreFile) String() string

type VectorStoreFile_Error

type VectorStoreFile_Error struct {

	// One of server_error or rate_limit_exceeded.
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorStoreFile_Error) Descriptor deprecated

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

Deprecated: Use VectorStoreFile_Error.ProtoReflect.Descriptor instead.

func (*VectorStoreFile_Error) GetCode

func (x *VectorStoreFile_Error) GetCode() string

func (*VectorStoreFile_Error) GetMessage

func (x *VectorStoreFile_Error) GetMessage() string

func (*VectorStoreFile_Error) ProtoMessage

func (*VectorStoreFile_Error) ProtoMessage()

func (*VectorStoreFile_Error) ProtoReflect

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

func (*VectorStoreFile_Error) Reset

func (x *VectorStoreFile_Error) Reset()

func (*VectorStoreFile_Error) String

func (x *VectorStoreFile_Error) String() string

type VectorStoreInternalServiceClient

type VectorStoreInternalServiceClient interface {
	SearchVectorStore(ctx context.Context, in *SearchVectorStoreRequest, opts ...grpc.CallOption) (*SearchVectorStoreResponse, error)
}

VectorStoreInternalServiceClient is the client API for VectorStoreInternalService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type VectorStoreInternalServiceServer

type VectorStoreInternalServiceServer interface {
	SearchVectorStore(context.Context, *SearchVectorStoreRequest) (*SearchVectorStoreResponse, error)
	// contains filtered or unexported methods
}

VectorStoreInternalServiceServer is the server API for VectorStoreInternalService service. All implementations must embed UnimplementedVectorStoreInternalServiceServer for forward compatibility

type VectorStoreServiceClient

type VectorStoreServiceClient interface {
	CreateVectorStore(ctx context.Context, in *CreateVectorStoreRequest, opts ...grpc.CallOption) (*VectorStore, error)
	ListVectorStores(ctx context.Context, in *ListVectorStoresRequest, opts ...grpc.CallOption) (*ListVectorStoresResponse, error)
	GetVectorStore(ctx context.Context, in *GetVectorStoreRequest, opts ...grpc.CallOption) (*VectorStore, error)
	GetVectorStoreByName(ctx context.Context, in *GetVectorStoreByNameRequest, opts ...grpc.CallOption) (*VectorStore, error)
	UpdateVectorStore(ctx context.Context, in *UpdateVectorStoreRequest, opts ...grpc.CallOption) (*VectorStore, error)
	DeleteVectorStore(ctx context.Context, in *DeleteVectorStoreRequest, opts ...grpc.CallOption) (*DeleteVectorStoreResponse, error)
	CreateVectorStoreFile(ctx context.Context, in *CreateVectorStoreFileRequest, opts ...grpc.CallOption) (*VectorStoreFile, error)
	ListVectorStoreFiles(ctx context.Context, in *ListVectorStoreFilesRequest, opts ...grpc.CallOption) (*ListVectorStoreFilesResponse, error)
	GetVectorStoreFile(ctx context.Context, in *GetVectorStoreFileRequest, opts ...grpc.CallOption) (*VectorStoreFile, error)
	DeleteVectorStoreFile(ctx context.Context, in *DeleteVectorStoreFileRequest, opts ...grpc.CallOption) (*DeleteVectorStoreFileResponse, error)
}

VectorStoreServiceClient is the client API for VectorStoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type VectorStoreServiceServer

VectorStoreServiceServer is the server API for VectorStoreService service. All implementations must embed UnimplementedVectorStoreServiceServer for forward compatibility

type VectorStore_FileCounts

type VectorStore_FileCounts struct {
	InProgress int64 `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"`
	Completed  int64 `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"`
	Failed     int64 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
	Cancelled  int64 `protobuf:"varint,4,opt,name=cancelled,proto3" json:"cancelled,omitempty"`
	Total      int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorStore_FileCounts) Descriptor deprecated

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

Deprecated: Use VectorStore_FileCounts.ProtoReflect.Descriptor instead.

func (*VectorStore_FileCounts) GetCancelled

func (x *VectorStore_FileCounts) GetCancelled() int64

func (*VectorStore_FileCounts) GetCompleted

func (x *VectorStore_FileCounts) GetCompleted() int64

func (*VectorStore_FileCounts) GetFailed

func (x *VectorStore_FileCounts) GetFailed() int64

func (*VectorStore_FileCounts) GetInProgress

func (x *VectorStore_FileCounts) GetInProgress() int64

func (*VectorStore_FileCounts) GetTotal

func (x *VectorStore_FileCounts) GetTotal() int64

func (*VectorStore_FileCounts) ProtoMessage

func (*VectorStore_FileCounts) ProtoMessage()

func (*VectorStore_FileCounts) ProtoReflect

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

func (*VectorStore_FileCounts) Reset

func (x *VectorStore_FileCounts) Reset()

func (*VectorStore_FileCounts) String

func (x *VectorStore_FileCounts) String() string

Jump to

Keyboard shortcuts

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