Interface VertexRagServiceGrpc.AsyncService (3.56.0)

public static interface VertexRagServiceGrpc.AsyncService

A service for retrieving relevant contexts.

Methods

augmentPrompt(AugmentPromptRequest request, StreamObserver<AugmentPromptResponse> responseObserver)

public default void augmentPrompt(AugmentPromptRequest request, StreamObserver<AugmentPromptResponse> responseObserver)

Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.

Parameters
Name Description
request AugmentPromptRequest
responseObserver io.grpc.stub.StreamObserver<AugmentPromptResponse>

corroborateContent(CorroborateContentRequest request, StreamObserver<CorroborateContentResponse> responseObserver)

public default void corroborateContent(CorroborateContentRequest request, StreamObserver<CorroborateContentResponse> responseObserver)

Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.

Parameters
Name Description
request CorroborateContentRequest
responseObserver io.grpc.stub.StreamObserver<CorroborateContentResponse>

retrieveContexts(RetrieveContextsRequest request, StreamObserver<RetrieveContextsResponse> responseObserver)

public default void retrieveContexts(RetrieveContextsRequest request, StreamObserver<RetrieveContextsResponse> responseObserver)

Retrieves relevant contexts for a query.

Parameters
Name Description
request RetrieveContextsRequest
responseObserver io.grpc.stub.StreamObserver<RetrieveContextsResponse>