public sealed class VertexRagServiceClientImpl : VertexRagServiceClientReference documentation and code samples for the Vertex AI v1 API class VertexRagServiceClientImpl.
VertexRagService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Remarks
A service for retrieving relevant contexts.
Constructors
VertexRagServiceClientImpl(VertexRagServiceClient, VertexRagServiceSettings, ILogger)
public VertexRagServiceClientImpl(VertexRagService.VertexRagServiceClient grpcClient, VertexRagServiceSettings settings, ILogger logger)Constructs a client wrapper for the VertexRagService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
VertexRagServiceVertexRagServiceClientThe underlying gRPC client. |
settings |
VertexRagServiceSettingsThe base VertexRagServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
AsyncRetrieveContextsOperationsClient
public override OperationsClient AsyncRetrieveContextsOperationsClient { get; }The long-running operations client for AsyncRetrieveContexts.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override VertexRagService.VertexRagServiceClient GrpcClient { get; }The underlying gRPC VertexRagService client
| Property Value | |
|---|---|
| Type | Description |
VertexRagServiceVertexRagServiceClient |
|
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
AskContexts(AskContextsRequest, CallSettings)
public override AskContextsResponse AskContexts(AskContextsRequest request, CallSettings callSettings = null)Agentic Retrieval Ask API for RAG.
| Parameters | |
|---|---|
| Name | Description |
request |
AskContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AskContextsResponse |
The RPC response. |
AskContextsAsync(AskContextsRequest, CallSettings)
public override Task<AskContextsResponse> AskContextsAsync(AskContextsRequest request, CallSettings callSettings = null)Agentic Retrieval Ask API for RAG.
| Parameters | |
|---|---|
| Name | Description |
request |
AskContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAskContextsResponse |
A Task containing the RPC response. |
AsyncRetrieveContexts(AsyncRetrieveContextsRequest, CallSettings)
public override Operation<AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata> AsyncRetrieveContexts(AsyncRetrieveContextsRequest request, CallSettings callSettings = null)Asynchronous API to retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
AsyncRetrieveContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationAsyncRetrieveContextsResponseAsyncRetrieveContextsOperationMetadata |
The RPC response. |
AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest, CallSettings)
public override Task<Operation<AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>> AsyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request, CallSettings callSettings = null)Asynchronous API to retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
AsyncRetrieveContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationAsyncRetrieveContextsResponseAsyncRetrieveContextsOperationMetadata |
A Task containing the RPC response. |
AugmentPrompt(AugmentPromptRequest, CallSettings)
public override AugmentPromptResponse AugmentPrompt(AugmentPromptRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AugmentPromptResponse |
The RPC response. |
AugmentPromptAsync(AugmentPromptRequest, CallSettings)
public override Task<AugmentPromptResponse> AugmentPromptAsync(AugmentPromptRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAugmentPromptResponse |
A Task containing the RPC response. |
CorroborateContent(CorroborateContentRequest, CallSettings)
public override CorroborateContentResponse CorroborateContent(CorroborateContentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CorroborateContentResponse |
The RPC response. |
CorroborateContentAsync(CorroborateContentRequest, CallSettings)
public override Task<CorroborateContentResponse> CorroborateContentAsync(CorroborateContentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCorroborateContentResponse |
A Task containing the RPC response. |
RetrieveContexts(RetrieveContextsRequest, CallSettings)
public override RetrieveContextsResponse RetrieveContexts(RetrieveContextsRequest request, CallSettings callSettings = null)Retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetrieveContextsResponse |
The RPC response. |
RetrieveContextsAsync(RetrieveContextsRequest, CallSettings)
public override Task<RetrieveContextsResponse> RetrieveContextsAsync(RetrieveContextsRequest request, CallSettings callSettings = null)Retrieves relevant contexts for a query.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveContextsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveContextsResponse |
A Task containing the RPC response. |