Retrieve from Vertex RAG Store for grounding.
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
Optional. The retrieval config for the Rag query.
similarityTopK
(deprecated)
integer
Optional. Number of top k results to return from the selected corpora.
vectorDistanceThreshold
(deprecated)
number
Optional. Only return results with vector distance smaller than the threshold.
JSON representation |
---|
{ "ragResources": [ { object ( |
RagResource
The definition of the Rag resource.
ragCorpus
string
Optional. RagCorpora resource name. Format: projects/{project}/locations/{location}/ragCorpora/{ragCorpus}
ragFileIds[]
string
Optional. ragFileId. The files should be in the same ragCorpus set in ragCorpus field.
JSON representation |
---|
{ "ragCorpus": string, "ragFileIds": [ string ] } |