QuanticDocumentSuggestion

The QuanticDocumentSuggestion component displays an accordion containing the document suggestions returned by Coveo Case Assist based on the values that the user has previously entered in the different fields.

Example

<c-quantic-document-suggestion engine-id={engineId} max-documents="5"></c-quantic-document-suggestion>

Properties

Property Attribute Description Type Default

engineId (required)

engine-id

The ID of the case assist engine instance the component registers to.

string

showQuickview

show-quickview

Whether or not we want to display the quick view for the document suggestions.

boolean

false

fetchOnInit

fetch-on-init

Whether or not we want to fetch suggestions when initializing this component.

boolean

false

maxDocuments

max-documents

The maximum number of document suggestions to display.

number

3

numberOfAutoOpenedDocuments

number-of-auto-opened-documents

The number of automatically opened document suggestions when fetching suggestions..

number

1

XML Configuration File Elements

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

Metadata Value

apiVersion

53.0

isExposed

false

Slots

The QuanticDocumentSuggestion component defines slots to ease the implementation of your Document Suggestion interface.

Example

The following sample is taken from the Quantic Case Assist Cookbook.

<!-- ... -->
        <c-quantic-document-suggestion
          engine-id={engineId}
          show-quickview
        >
          <c-vote-count-wrapper slot="rating"></c-vote-count-wrapper>
          <c-vote-tracker-wrapper
            engine-id={engineId}
            slot="actions"
          ></c-vote-tracker-wrapper>
          <c-quickview-footer-wrapper
            engine-id={engineId}
            slots-to-be-hidden={slotsToBeHidden}
            slot="quickview-footer"
          ></c-quickview-footer-wrapper>
          <c-no-suggestion
            disconnected-callback-action={onSuggestions}
            engine-id={engineId}
            case-data={_caseData}
            slot="no-suggestions"
          ></c-no-suggestion>
        </c-quantic-document-suggestion>
      </div>
<!-- ... -->

rating

The markup displayed at the top of each document suggestion, which lets you display the rating score of each document.

Quantic document suggestion rating slot.

actions

The markup displayed at the lower right of each document suggestion, which lets end users perform certain actions, such as rating the document.

Quantic document suggestion action slot.

The markup displayed in the footer of the quickview of each document suggestion.

Quantic document suggestion quickview footer slot.

no-suggestions

The markup displayed instead of document suggestions when your {machine-learning-model} doesn’t return suggestions.

Quantic document suggestion no suggestion slot.