autointent.generation.description_generation#

Description generation for intents using OpenAI models.

Functions#

group_utterances_by_label(samples)

Group samples by their labels.

create_intent_description(client, intent_name, ...)

Generate a description for a specific intent using an OpenAI model.

generate_intent_descriptions(client, ...)

Generate descriptions for a list of intents using an OpenAI model.

enhance_dataset_with_descriptions(dataset, client, prompt)

Enhances a dataset by generating descriptions for intents using an OpenAI model.