[BindServiceMethod(typeof(VertexRagService), "BindService")]
public abstract class VertexRagService.VertexRagServiceBaseReference documentation and code samples for the Vertex AI v1beta1 API class VertexRagService.VertexRagServiceBase.
Base class for server-side implementations of VertexRagService
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Methods
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). |