Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type R ¶
type R struct {
// contains filtered or unexported fields
}
R is for rag.
func NewR ¶
func NewR(enableAuth bool, vsInernalClient VectorStoreInternalClient) *R
NewR creates a new R instance.
func (*R) ProcessMessages ¶
func (r *R) ProcessMessages( ctx context.Context, vstore *vsv1.VectorStore, messages []*v1.CreateChatCompletionRequest_Message, ) ([]*v1.CreateChatCompletionRequest_Message, error)
ProcessMessages processes chat completion messages.
type VectorStoreInternalClient ¶
type VectorStoreInternalClient interface {
SearchVectorStore(ctx context.Context, req *vsv1.SearchVectorStoreRequest, opts ...grpc.CallOption) (*vsv1.SearchVectorStoreResponse, error)
}
VectorStoreInternalClient is an interface for a vector store internal GRPC client.
Click to show internal directories.
Click to hide internal directories.