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: Generates the answer without additional formatting instructions. - bullet: Requests that the answer is formatted as a bulleted list. - step: Requests that the answer is formatted as a series of step-by-step instructions. - concise: Requests that the generated answer is as concise as possible.

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

'default'

Shadow Parts

Part Description

citation

The link that allows the user to navigate to the 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-content

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-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.