Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

The Intent stage does a semantic comparison of a provided sentence against possible intents the recognizer already has. If the confidence value is in the threshold, it will create a tag holding the intent.


Info

This is a plugin recognizer. Uses Intent Stage


This recognizer can be used with 2 modelsmodel types:

  1. A frozen Universal Sentence Encoder TensorFlow model. This one is stored in "[saga-home]\tf-models" directory.
  2. Any of the models that create embeddings that are available in the Python Bridge.


Both the intents stored in the recognizer as the query entered by the user are encoded (using sentence embedding vectors) and then compared.  The intent recognizer will chose the intent that best matches the query.

Configuration

  • Parameter
    summary

Using Tensor flow:

Image Removed

Using Python Bridge:

Image Removed
  • Matching intents need to have a higher confidence value than this threshold to be selected
    default0.6
    nameMatch Threshold
    typedouble
    requiredtrue
  • Parameter
    summaryText will be normalized using these tags. Matched text will be replaced by the 'display' field (in case of the entity recognizer). If not then the matching text is used.
    nameNormalize Tags
    typestring array
  • Parameter
    summaryTags matching text will be removed from the text before evaluation
    nameRemove Tags
    typestring array
  • Parameter
    summaryWhether or not to include the vector generated in the metadata.
    defaultfalse
    nameAdd Vectors
    typeboolean
    requiredtrue


Using TensorFlow:

Image Added


Using Python Bridge:

Image Added


  • Parameter
    summaryHost name where the Python Bridge runs
    defaultlocalhost
    nameHost Name
    requiredtrue
  • Parameter
    summaryPython Bridge port
    default5000
    namePort
    typeinteger
    requiredtrue
  • Parameter
    summaryPython Bridge model to use
    nameModel
    requiredtrue
  • Parameter
    summaryVersion of the Python Bridge Model to use
    nameVersion
    requiredtrue
  • Parameter
    summaryIntent to find within the list of possible intents.Whether or not to use authentication for the python bridge
    defaultNonefalse
    nameAuthentication
    typeboolean
    requiredtrueIntent

Adding an Intent

Click on the Image Removedthe Image Added button to open the "Add new " dialog


  • Parameter
    summaryIntent to add to the list of possible intents.
    defaultNone
    nameWrite intent here
  • Parameter
    summaryConfidence adjustment for this very intent.
    default1
    nameConfidence Adjustment
    typedouble


After adding the intent, it is listed in the table:

Image RemovedImage Added



Recalculate Vectors

Click on the Image Removedthe Image Added button to refresh and recalculate all vectors.

General Settings

Include Page
Generic Recognizer Config
Generic Recognizer Config