VertexAiRagMemoryService
Creates a service for the given RAG corpus in project and location.
Parameters
The Google Cloud project. Required and read only from here, never the environment.
The Google Cloud location. Required and read only from here, never the environment. The special value "global" selects the global endpoint.
The bare corpus id (e.g. my-corpus). It is expanded to projects/{project}/locations/{location}/ragCorpora/{id}; a full resource name is rejected.
The number of contexts to retrieve.
Only return contexts with a vector distance below this threshold.
Credentials for the Vertex AI API; defaults to application-default credentials scoped for Google Cloud Platform.
The underlying ktor HttpClient; it is closed (and the failure rethrown) if the arguments are invalid, so a bad corpus/project/location never leaves a client behind.