public static final class VertexRagServiceGrpc.VertexRagServiceBlockingV2Stub extends AbstractBlockingStub<VertexRagServiceGrpc.VertexRagServiceBlockingV2Stub>A stub to allow clients to do synchronous rpc calls to service VertexRagService.
A service for retrieving relevant contexts.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > VertexRagServiceGrpc.VertexRagServiceBlockingV2StubMethods
askContexts(AskContextsRequest request)
public AskContextsResponse askContexts(AskContextsRequest request)Agentic Retrieval Ask API for RAG.
| Parameter | |
|---|---|
| Name | Description |
request |
AskContextsRequest |
| Returns | |
|---|---|
| Type | Description |
AskContextsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
asyncRetrieveContexts(AsyncRetrieveContextsRequest request)
public Operation asyncRetrieveContexts(AsyncRetrieveContextsRequest request)Asynchronous API to retrieves relevant contexts for a query.
| Parameter | |
|---|---|
| Name | Description |
request |
AsyncRetrieveContextsRequest |
| Returns | |
|---|---|
| Type | Description |
Operation |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
augmentPrompt(AugmentPromptRequest request)
public 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 |
AugmentPromptResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
build(Channel channel, CallOptions callOptions)
protected VertexRagServiceGrpc.VertexRagServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
VertexRagServiceGrpc.VertexRagServiceBlockingV2Stub |
|
corroborateContent(CorroborateContentRequest request)
public 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 |
CorroborateContentResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
retrieveContexts(RetrieveContextsRequest request)
public RetrieveContextsResponse retrieveContexts(RetrieveContextsRequest request)Retrieves relevant contexts for a query.
| Parameter | |
|---|---|
| Name | Description |
request |
RetrieveContextsRequest |
| Returns | |
|---|---|
| Type | Description |
RetrieveContextsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|