MetadataSchema Objects
save
add_embedding
- k : str: The key under which the embedding will be stored in the schema.
- size : int: The size of the embedding.
k
is already defined in the schema.
add_enum
- k : str: The key under which the embedding will be stored in the schema.
- values : Sequence[str]: The set of values for the enum (min 1, max 256).
k
is already defined in the schema.
add_enum_options
- k : str: The key referencing the enum.
- values : Sequence[str]: The set of new values to add to the enum (min 1, max 256).
k
is not defined in the schema or is not an enum.
add_scalar
- k : str: The key for which the metadata type is being set.
- data_type : Literal[“boolean”, “datetime”, “number”, “uuid”, “varchar”, “text”, “string”, “long_string”] The type of metadata to be associated with the key. Must be a valid identifier. “string” is an alias of “varchar” “long_string” is an alias of “text”
k
is already defined in the schema with a conflicting type.
ValueError: If data_type
is not a valid type of metadata identifier.
set_scalar
- k : str: The key for which the metadata type is being set.
- data_type : Literal[“boolean”, “datetime”, “number”, “uuid”, “varchar”, “text”, “string”, “long_string”] The type of metadata to be associated with the key. Must be a valid identifier. “string” is an alias of “varchar” “long_string” is an alias of “text”
k
is already defined in the schema with a conflicting type.
ValueError: If data_type
is not a valid type of metadata identifier.
delete_key
k
is already deleted or not present in the schema
restore_key
k
is not already deleted or not present in the schema
keys
has_key
is_key_deleted
get_key_type
k
.
Raises:
MetadataSchemaError
- If the keyk
is not supported by the current SDK.
get_embedding_size
k
is not defined in the schema or is not an embedding
get_enum_options
k
is not defined in the schema or is not an enum.