atomic-generated-answer

This is for:

Developer
In this article

The atomic-generated-answer component uses Coveo Machine Learning (Coveo ML) models to automatically generate an answer to a query executed by the user. For more information, see About Relevance Generative Answering (RGA)

Properties

Property Attribute Description Type Default

answerStyle

answer-style

The answer style to apply when the component first loads. Options: - default: Generate the answer without specific formatting instructions. - bullet: Generate the answer as a bulleted list. - step: Generate the answer as step-by-step instructions. - concise: Generate the answer as briefly as possible.

"bullet" | "concise" | "default" | "step"

'default'

Shadow Parts

Part Description

citation

The link that allows the user to navigate to the item.

citation-index

The content of the citation item.

citation-popover

The pop-up that shows an item preview when the user hovers over the citation.

citations-label

The header of the citations list.

container

The container displaying the generated answer.

copy-button

The "Copy answer" button.

feedback-button

The "like" and "dislike" buttons.

generated-text

The text of the generated answer.

header-label

The header of the generated answer container.

rephrase-button

The button for each of the rephrase options (step-by-step instructions, bulleted list, and summary).

rephrase-button-label

The label of the rephrase button.

rephrase-buttons

The container of the rephrase buttons section.

rephrase-label

The header of the rephrase options.

retry-container

The container for the "retry" section.

toggle

The switch to toggle the visibility of the generated answer.