1.0.0-beta87 (latest) 1.0.0-beta86

    [BindServiceMethod(typeof(VertexRagService), "BindService")]
    public abstract class VertexRagService.VertexRagServiceBase

Reference documentation and code samples for the Vertex AI v1beta1 API class VertexRagService.VertexRagServiceBase.

Base class for server-side implementations of VertexRagService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> VertexRagService.VertexRagServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Methods

### AskContexts(AskContextsRequest, ServerCallContext)

    public virtual Task<AskContextsResponse> AskContexts(AskContextsRequest request, ServerCallContext context)

Agentic Retrieval Ask API for RAG.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AskContextsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AskContextsResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AsyncRetrieveContextsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AugmentPromptRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AugmentPromptResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CorroborateContentRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CorroborateContentResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveContextsResponse` | The response to send back to the client (wrapped by a task). |