Autocomplete

async autocomplete_api.autocomplete(question: str, language: str = None)

If combined results of get_exact_match() and get_fuzzy_match() return less than 5 results, this method is called after every new “space” character in the question (user query) is added as well as when a “?” character is added at the end of the question.

Parameters:
  • question (str) – User input to match database entries

  • language (str, optional) – Question and results language

Return type:

list of dict

async autocomplete_api.exact_match(question: str, language: str = None)

Return results from Exact matching

Parameters:
  • question (str) – User input to match database entries

  • language (str, optional) – Question and results language

Return type:

list of dict

async autocomplete_api.fuzzy_match(question: str, language: str = None)

Return results from Fuzzy matching

Parameters:
  • question (str) – User input to match database entries

  • language (str, optional) – Question and results language

Return type:

list of dict

async autocomplete_api.semantic_similarity_match(question: str, language: str = None)

Return results from Semantic Similarity matching

Parameters:
  • question (str) – User input to match database entries

  • language (str, optional) – Question and results language

Return type:

list of dict