ModelConfig¶
- class oci.generative_ai.models.ModelConfig(**kwargs)¶
Bases:
objectBase model configuration shared across GenAI Project memory.
Attributes:
A constant which can be used with the model_config_type property of a ModelConfig.
A constant which can be used with the model_config_type property of a ModelConfig.
A constant which can be used with the model_config_type property of a ModelConfig.
[Required] Gets the llm_selection of this ModelConfig.
[Required] Gets the model_config_type of this ModelConfig.
Methods:
__init__(**kwargs)Initializes a new ModelConfig object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- MODEL_CONFIG_TYPE_CONDENSER = 'CONDENSER'¶
A constant which can be used with the model_config_type property of a ModelConfig. This constant has a value of “CONDENSER”
- MODEL_CONFIG_TYPE_EMBEDDING = 'EMBEDDING'¶
A constant which can be used with the model_config_type property of a ModelConfig. This constant has a value of “EMBEDDING”
- MODEL_CONFIG_TYPE_EXTRACTION = 'EXTRACTION'¶
A constant which can be used with the model_config_type property of a ModelConfig. This constant has a value of “EXTRACTION”
- __init__(**kwargs)¶
Initializes a new ModelConfig object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
model_config_type (str) – The value to assign to the model_config_type property of this ModelConfig. Allowed values for this property are: “EXTRACTION”, “EMBEDDING”, “CONDENSER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
llm_selection (oci.generative_ai.models.LlmSelection) – The value to assign to the llm_selection property of this ModelConfig.
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property llm_selection¶
[Required] Gets the llm_selection of this ModelConfig.
- Returns
The llm_selection of this ModelConfig.
- Return type
- property model_config_type¶
[Required] Gets the model_config_type of this ModelConfig. The stage-specific config type.
Allowed values for this property are: “EXTRACTION”, “EMBEDDING”, “CONDENSER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The model_config_type of this ModelConfig.
- Return type
str