Search Knowledge

Search a knowledge from a question

Query url

api/knowledge/suggest

Query header

'Authorization: Bearer <token>'
'Content-Type: application/json'

Query parameters

Name Required Description

q

Mandatory

question to be asked*

max

Optional

Maximum number of suggestions expected in response

confidence

Optional

Rate above which only one suggestion is offered by the engine

fallback_threshold

Optional

Rate below which knowledge is no longer offered

Example response

{
   "entities": [],
   "intents": [
         {
           "id": "7ecfd437-d21a-4510-937e-6cdc64eb6d0c",
           "index_utterance": 0,
           "intent": "7ecfd437-d21a-4510-937e-6cdc64eb6d0c",
           "rank": 1,
           "score_intent": 0.2735753357410431,
           "score_utterance": 0.8427361845970154,
           "utterance": "Que couvre l'assurance habitation ?",
           "tags": [
               "habitation"
           ],
           "type": "static"
       }
   ]
}