Resource: RagDataSchema
The schema of the user specified metadata.
namestring
Identifier. Resource name of the data schema in the form of: projects/{projectNumber}/locations/{location}/ragCorpora/{ragCorpus}/ragDataSchemas/{ragDataSchema} where the {ragDataSchema} part should be the same as the key field below.
keystring
Required. The key of this data schema. This key should be matching the key of user specified metadata and unique inside corpus. This value can be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
The schema details mapping to the key.
| JSON representation |
|---|
{
"name": string,
"key": string,
"schemaDetails": {
object ( |
RagMetadataSchemaDetails
data schema details indicates the data type and the data struct corresponding to the key of user specified metadata.
Config for List data type.
type of the metadata.
The granularity associated with this RagMetadataSchema.
The search strategy for the metadata value of the key.
| JSON representation |
|---|
{ "listConfig": { object ( |
DataType
data type of the metadata.
| Enums | |
|---|---|
DATA_TYPE_UNSPECIFIED |
Unspecified type. |
INTEGER |
Integer type. |
FLOAT |
Float type. |
STRING |
String type. |
DATETIME |
Supported formats: %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) %Y-%m-%dT%H:%M:%E*S %Y-%m-%dT%H:%M%E*z %Y-%m-%dT%H:%M %Y-%m-%dT%H%E*z %Y-%m-%dT%H %Y-%m-%d%E*z %Y-%m-%d %Y-%m %Y |
BOOLEAN |
Boolean type. |
LIST |
List type. - Each element in the list must be of the exact same data schema; otherwise, they are invalid arguments. - Elements cannot be another list (no list of list). |
ListConfig
Config for List data type.
The value's data type in the list.
| JSON representation |
|---|
{
"valueSchema": {
object ( |
Granularity
The granularity of metadata under this DataSchema.
| Enums | |
|---|---|
GRANULARITY_UNSPECIFIED |
Unspecified granularity. |
GRANULARITY_FILE_LEVEL |
RagFile-level granularity. |
SearchStrategy
The search strategy for the metadata value of the key.
The search strategy type to be applied on the metadata key.
| JSON representation |
|---|
{
"searchStrategyType": enum ( |
SearchStrategyType
The types of search strategies to be applied on the metadata key.
| Enums | |
|---|---|
SEARCH_STRATEGY_TYPE_UNSPECIFIED |
Unspecified search strategy type. |
NO_SEARCH |
metadata values of the key above will not be searchable. |
EXACT_SEARCH |
When searching with key, the value must be exactly as the metadata value that has been ingested. |
Methods |
|
|---|---|
|
Batch Create one or more RagDataSchemas |
|
Batch Deletes one or more RagDataSchemas |
|
Creates a RagDataSchema. |
|
Deletes a RagDataSchema. |
|
Gets a RagDataSchema. |
|
Lists RagDataSchemas in a Location. |