QuanticGeneratedAnswer

Note

This component was introduced in version 2.27.3.

The QuanticGeneratedAnswer component automatically generates an answer using Coveo machine learning models to answer the query executed by the user. This component includes a slot, "no-answer-message", which allows for rendering a custom message when no answer is generated.

Example

<c-quantic-generated-answer engine-id={engineId} with-toggle collapsible>
 <div slot="no-answer-message">No answer was generated.</div>
</c-quantic-generated-answer>

Properties

Property Attribute Description Type Default

engineId (required)

engine-id

The ID of the engine instance the component registers to.

string

fieldsToIncludeInCitations

fields-to-include-in-citations

A list of fields to fetch with the citations used to generate the answer.

string

'sfid,sfkbid,sfkavid'

collapsible

collapsible

Whether the generated answer should be collapsible when it exceeds the maximum height of 250px.

boolean

{false}

withToggle

with-toggle

Whether the generated answer can be toggled on or off.

boolean

{false}

answerConfigurationId

answer-configuration-id

The unique identifier of the answer configuration to use to generate the answer.

string

{undefined}

maxCollapsedHeight

max-collapsed-height

The maximum height (in px units) of the generated answer when it is collapsed.

number

{250}

XML configuration file elements

The following XML configuration file elements apply (see XML Configuration File Elements).

Metadata Value

apiVersion

57.0

isExposed

false