Resource: RagCorpus
A RagCorpus is a RagFile container and a project can have multiple RagCorpora.
JSON representation |
---|
{
"name": string,
"displayName": string,
"description": string,
"ragEmbeddingModelConfig": {
object ( |
Fields | |
---|---|
name |
Output only. The resource name of the RagCorpus. |
displayName |
Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
description |
Optional. The description of the RagCorpus. |
ragEmbeddingModelConfig |
Optional. Immutable. The embedding model config of the RagCorpus. |
createTime |
Output only. timestamp when this RagCorpus was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. timestamp when this RagCorpus was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
RagEmbeddingModelConfig
Config for the embedding model to use for RAG.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field model_config . The model config to use. model_config can be only one of the following: |
|
vertexPredictionEndpoint |
The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. endpoints hosting non-1P fine-tuned text embedding models are currently not supported. |
VertexPredictionEndpoint
Config representing a model hosted on Vertex Prediction Endpoint.
JSON representation |
---|
{ "endpoint": string, "model": string, "modelVersionId": string } |
Fields | |
---|---|
endpoint |
Required. The endpoint resource name. Format: |
model |
Output only. The resource name of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. Pattern: |
modelVersionId |
Output only. version id of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. |
Methods |
|
---|---|
|
Creates a RagCorpus. |
|
Deletes a RagCorpus. |
|
Gets a RagCorpus. |
|
Lists RagCorpora in a Location. |