MetadataSchemaError Objects
MetadataSchema Objects
save
add_embedding
MetadataSchemaError- If the keykis already defined in the schema.
add_geospatial
MetadataSchemaError- If the keykis already defined in the schema.
add_enum
MetadataSchemaError- If the keykis already defined in the schema.
add_enum_options
MetadataSchemaError- If the keykis not defined in the schema or is not an enum.
add_scalar
MetadataSchemaError- If the keykis already defined in the schema with a conflicting type.ValueError- Ifdata_typeis not a valid type of metadata identifier.
set_scalar
MetadataSchemaError- If the keykis already defined in the schema with a conflicting type.ValueError- Ifdata_typeis not a valid type of metadata identifier.
delete_key
hard- bool: If the deletion should prevent indexing of this key unconditionally. Setting this to true prevents restoring the type definition in the future.
MetadataSchemaError- If the keykis already deleted or not present in the schema
restore_key
MetadataSchemaError- If the keykis not already deleted or not present in the schema
keys
Sequence[str]- A list of keys present in the metadata schema.
has_key
is_key_deleted
get_key_type
k.
Raises:
MetadataSchemaError- If the keykis not supported by the current SDK.
get_embedding_size
int- The size of the embedding
MetadataSchemaError- If the keykis not defined in the schema or is not an embedding
get_enum_options
Sequence[str]- The list of all values associated with an enum type.
MetadataSchemaError- If the keykis not defined in the schema or is not an enum.

