public static final class VertexRagServiceGrpc.VertexRagServiceStub extends AbstractAsyncStub<VertexRagServiceGrpc.VertexRagServiceStub>A stub to allow clients to do asynchronous rpc calls to service VertexRagService.
A service for retrieving relevant contexts.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > VertexRagServiceGrpc.VertexRagServiceStubMethods
augmentPrompt(AugmentPromptRequest request, StreamObserver<AugmentPromptResponse> responseObserver)
public 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> |
build(Channel channel, CallOptions callOptions)
protected VertexRagServiceGrpc.VertexRagServiceStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
VertexRagServiceGrpc.VertexRagServiceStub |
|
corroborateContent(CorroborateContentRequest request, StreamObserver<CorroborateContentResponse> responseObserver)
public 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 void retrieveContexts(RetrieveContextsRequest request, StreamObserver<RetrieveContextsResponse> responseObserver)Retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveContextsRequest |
responseObserver |
io.grpc.stub.StreamObserver<RetrieveContextsResponse> |