Class VertexRagServiceGrpc.VertexRagServiceFutureStub (3.59.0)

public static final class VertexRagServiceGrpc.VertexRagServiceFutureStub extends AbstractFutureStub<VertexRagServiceGrpc.VertexRagServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service VertexRagService.

A service for retrieving relevant contexts.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > VertexRagServiceGrpc.VertexRagServiceFutureStub
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()

Methods

augmentPrompt(AugmentPromptRequest request)

public ListenableFuture<AugmentPromptResponse> augmentPrompt(AugmentPromptRequest request)

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

Parameter
Name Description
request AugmentPromptRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AugmentPromptResponse>

build(Channel channel, CallOptions callOptions)

protected VertexRagServiceGrpc.VertexRagServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

corroborateContent(CorroborateContentRequest request)

public ListenableFuture<CorroborateContentResponse> corroborateContent(CorroborateContentRequest request)

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.

Parameter
Name Description
request CorroborateContentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CorroborateContentResponse>

retrieveContexts(RetrieveContextsRequest request)

public ListenableFuture<RetrieveContextsResponse> retrieveContexts(RetrieveContextsRequest request)

Retrieves relevant contexts for a query.

Parameter
Name Description
request RetrieveContextsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<RetrieveContextsResponse>