PromptSettings Class

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Initialize PromptSettings.

Constructor

PromptSettings(*, enable_chain_of_thought: bool = False, enable_chain_of_density: bool = False, max_len_summary: int | None = None)

Parameters

Name Description
enable_chain_of_thought
Required
bool, <xref:optional>

Whether or not to enable chain of thought which modifies the system prompt used. Can be used for all data_generation_task_type values except SUMMARIZATION, defaults to False

enable_chain_of_density
Required
bool, <xref:optional>

Whether or not to enable chain of density which modifies the system prompt used. Can only be used for data_generation_task_type of SUMMARIZATION, defaults to False

max_len_summary
Required

The maximum length of the summary generated for data_generation_task_type` of SUMMARIZATION, defaults to None

Methods

items

items

items()

Attributes

enable_chain_of_density

Get whether or not chain of density is enabled.

Returns

Type Description

Whether or not chain of thought is enabled

enable_chain_of_thought

Get whether or not chain of thought is enabled.

Returns

Type Description

Whether or not chain of thought is enabled.

max_len_summary

The number of tokens to use for summarization.

Returns

Type Description

The number of tokens to use for summarization