Autocompleter¶

class autocomplete.autocompleter.Autocompleter¶

Completer for user input to the copilot

async get_autocomplete(question: str, language: str = None, k: int = 0)¶

Returns matching results according to a defined behaviour

Parameters:
  • question (str) – question to match

  • language (str) – question and results language

  • k (int) – number of results to return

Returns:

a list of matching results

Return type:

list of str