Integrated API

Find Match

POST https://backend.alli.ai/webapi/find_match

This API is for integrated search for fuzzy match, small talk, q&a.

Headers

Request Body

{
  "found": true, 
  "result": [
    {
      "confidence": 0.8660902048311576, 
      "effectiveConfidence": 0.8660902048311576, 
      "question": "QA 게이트(GATE)", 
      "answer": "...", 
      "id": "RkFROjYwZDA3MGU5NWRjZDlkZTliMzFlNTI5MA==", 
      "lastUpdatedDate": "2021-06-21", 
      "createdDate": "2021-06-21", 
      "hashtags": ["실무용어"], 
      "userFeedback": {"positiveCount": 0, "negativeCount": 0}, 
      "agentFeedback": {"positiveCount": 0, "negativeCount": 0}
    }
  ], 
  "process": "faq", 
  "error": null
}

Request Example

Please replace YOUR API KEY with your one in example below, To get the api key, please see getting-api-key section.

$ curl -H "API-KEY: YOUR_API_KEY" \
       -d'{"process_order":["exact_match", "small_talk", "faq"], \
           "exact_match_list": ["aaaa", "bbbb"], \
           "query": "QA", \
           "faq_threshold": 0.85}' \
       "https://backend.alli.ai/webapi/find_match"
{
  "found": true, 
  "result": [
    {
      "confidence": 0.8660902048311576, 
      "effectiveConfidence": 0.8660902048311576, 
      "question": "QA 게이트(GATE)", 
      "answer": "...", 
      "id": "RkFROjYwZDA3MGU5NWRjZDlkZTliMzFlNTI5MA==", 
      "lastUpdatedDate": "2021-06-21", 
      "createdDate": "2021-06-21", 
      "hashtags": ["실무용어"], 
      "userFeedback": {"positiveCount": 0, "negativeCount": 0}, 
      "agentFeedback": {"positiveCount": 0, "negativeCount": 0}
    }
  ], 
  "process": "faq", 
  "error": null,
  "resultId": "RmluZE1hdGNoUmVzdWx0OjYxODhkZGMwMjE1MmZhYWVkNGExMDRmOA=="
}

Match Feedback

POST https://backend.alli.ai/webapi/match_feedback

if there is no positive_feedback, It just returns previous result without feedback.

If there is no feedback_index, it returns all previous result.

Only for 'faq' process can apply feedback. and only 'faq', 'mrc' can get previous result

Headers

Request Body

Last updated