CitationOptionsV2¶
-
class
oci.generative_ai_inference.models.CitationOptionsV2(**kwargs)¶ Bases:
objectOptions for controlling citation generation in RAG flows.
Attributes
MODE_ACCURATEA constant which can be used with the mode property of a CitationOptionsV2. MODE_FASTA constant which can be used with the mode property of a CitationOptionsV2. MODE_OFFA constant which can be used with the mode property of a CitationOptionsV2. modeGets the mode of this CitationOptionsV2. Methods
__init__(**kwargs)Initializes a new CitationOptionsV2 object with values from keyword arguments. -
MODE_ACCURATE= 'ACCURATE'¶ A constant which can be used with the mode property of a CitationOptionsV2. This constant has a value of “ACCURATE”
-
MODE_FAST= 'FAST'¶ A constant which can be used with the mode property of a CitationOptionsV2. This constant has a value of “FAST”
-
MODE_OFF= 'OFF'¶ A constant which can be used with the mode property of a CitationOptionsV2. This constant has a value of “OFF”
-
__init__(**kwargs)¶ Initializes a new CitationOptionsV2 object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: mode (str) – The value to assign to the mode property of this CitationOptionsV2. Allowed values for this property are: “FAST”, “ACCURATE”, “OFF”
-
mode¶ Gets the mode of this CitationOptionsV2. Dictates the approach taken to generating citations as part of the RAG flow. Defaults to “accurate”. - “ACCURATE”: More precise citation generation. - “FAST”: Faster but may be less precise. - “OFF”: Disables citation generation. Note: command-r7b-12-2024 and command-a-03-2025 only support “FAST” and “OFF”.
Allowed values for this property are: “FAST”, “ACCURATE”, “OFF”
Returns: The mode of this CitationOptionsV2. Return type: str
-