CustomSemanticStoreModelSelection

class oci.generative_ai.models.CustomSemanticStoreModelSelection(**kwargs)

Bases: oci.generative_ai.models.semantic_store_model_selection.SemanticStoreModelSelection

Uses a customer-selected generative AI model for SemanticStore enrichment.

Attributes

MODEL_SELECTION_TYPE_CUSTOM str(object=’’) -> str
MODEL_SELECTION_TYPE_DEFAULT str(object=’’) -> str
model_id [Required] Gets the model_id of this CustomSemanticStoreModelSelection.
model_selection_type [Required] Gets the model_selection_type of this SemanticStoreModelSelection.

Methods

__init__(**kwargs) Initializes a new CustomSemanticStoreModelSelection 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_SELECTION_TYPE_CUSTOM = 'CUSTOM'
MODEL_SELECTION_TYPE_DEFAULT = 'DEFAULT'
__init__(**kwargs)

Initializes a new CustomSemanticStoreModelSelection object with values from keyword arguments. The default value of the model_selection_type attribute of this class is CUSTOM and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • model_selection_type (str) – The value to assign to the model_selection_type property of this CustomSemanticStoreModelSelection. Allowed values for this property are: “DEFAULT”, “CUSTOM”
  • model_id (str) – The value to assign to the model_id property of this CustomSemanticStoreModelSelection.
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.

model_id

[Required] Gets the model_id of this CustomSemanticStoreModelSelection. The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels

Returns:The model_id of this CustomSemanticStoreModelSelection.
Return type:str
model_selection_type

[Required] Gets the model_selection_type of this SemanticStoreModelSelection. The type of model selection.

Allowed values for this property are: “DEFAULT”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The model_selection_type of this SemanticStoreModelSelection.
Return type:str