[BindServiceMethod(typeof(VertexRagService), "BindService")]
public abstract class VertexRagService.VertexRagServiceBaseReference documentation and code samples for the Vertex AI v1 API class VertexRagService.VertexRagServiceBase.
Base class for server-side implementations of VertexRagService
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Methods
AskContexts(AskContextsRequest, ServerCallContext)
public virtual Task<AskContextsResponse> AskContexts(AskContextsRequest request, ServerCallContext context)Agentic Retrieval Ask API for RAG.
| Parameters | |
|---|---|
| Name | Description |
request |
AskContextsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAskContextsResponse |
The response to send back to the client (wrapped by a task). |
AsyncRetrieveContexts(AsyncRetrieveContextsRequest, ServerCallContext)
public virtual Task<Operation> AsyncRetrieveContexts(AsyncRetrieveContextsRequest request, ServerCallContext context)Asynchronous API to retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
AsyncRetrieveContextsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
AugmentPrompt(AugmentPromptRequest, ServerCallContext)
public virtual Task<AugmentPromptResponse> AugmentPrompt(AugmentPromptRequest request, ServerCallContext context)Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.
| Parameters | |
|---|---|
| Name | Description |
request |
AugmentPromptRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAugmentPromptResponse |
The response to send back to the client (wrapped by a task). |
CorroborateContent(CorroborateContentRequest, ServerCallContext)
public virtual Task<CorroborateContentResponse> CorroborateContent(CorroborateContentRequest request, ServerCallContext context)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 |
CorroborateContentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCorroborateContentResponse |
The response to send back to the client (wrapped by a task). |
RetrieveContexts(RetrieveContextsRequest, ServerCallContext)
public virtual Task<RetrieveContextsResponse> RetrieveContexts(RetrieveContextsRequest request, ServerCallContext context)Retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveContextsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveContextsResponse |
The response to send back to the client (wrapped by a task). |