Full name: projects.locations.askContexts
Agentic Retrieval Ask API for RAG.
Endpoint
posthttps://{service-endpoint}/v1/{parent}:askContexts
Where {service-endpoint} is one of the supported service endpoints.
Path parameters
parentstring
Required. The resource name of the Location from which to retrieve RagContexts. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.
Request body
The request body contains data with the following structure:
Required. Single RAG retrieve query.
Optional. The tools to use for locations.askContexts.
Response body
Response message for VertexRagService.AskContexts.
If successful, the response body contains data with the following structure:
responsestring
The Retrieval Response.
The contexts of the query.
| JSON representation |
|---|
{
"response": string,
"contexts": {
object ( |