locked
3 relevant results RRS feed

  • Question

  • Hi:

    I have an exercise to solve.

    I have a list on questions and answers

    I know how to create a model to retrieve the answer for a specific question.

    Now, my question is how could LUIS retrieve the 3 more relevant answers for a specific question?

    Thanks for your help.

    Monday, July 8, 2019 6:40 PM

All replies

  • Hello Fernando,

    For the above query do you mean to check how LUIS returns relevant entities for a utterance of a user? If Yes, this depends on the utterance and the intent. All top scoring intents and their entities are listed based on the score. For example a simple query like this "at what time are they going to meet tomorrow" would list the pre-built calendar entity and since I have not defined any intent it would match the None intent. 

    {
      "query": "at what time are they going to meet tomorrow?",
      "prediction": {
        "normalizedQuery": "at what time are they going to meet tomorrow?",
        "topIntent": "None",
        "intents": {
          "None": {
            "score": 0.9709795
          }
        },
        "entities": {
          "Calendar.StartDate": [
            "tomorrow"
          ],
          "$instance": {
            "Calendar.StartDate": [
              {
                "type": "Calendar.StartDate",
                "text": "tomorrow",
                "startIndex": 36,
                "length": 8,
                "score": 0.8597293,
                "modelTypeId": 1,
                "modelType": "Entity Extractor",
                "recognitionSources": [
                  "model"
                ]
              }
            ]
          }
        }
      }
    }
    
    
    Tuesday, July 9, 2019 3:33 PM