def METHOD_NAME():
    st_time = time.time()
    last_utterances = request.json["sentences"]
    utterances_histories = request.json["utterances_histories"]
    response = []
    for last_utterance, utterances_history in zip(last_utterances, utterances_histories):
        response = response + check(
            last_utterance,
            vectorizer=vectorizer,
            vectorized_phrases=vectorized_phrases,
            phrase_list=phrase_list,
            confidence_threshold=CONFIDENCE_THRESHOLD,
            utterances_history=utterances_history,
        )
    if not response:
        with sentry_sdk.push_scope() as scope:
            scope.set_extra("last_utterances", last_utterances)
            sentry_sdk.capture_message(f"No response in topicalchat_{TOPIC_NAME}_tfidf_retrieva")
        response = [["sorry", 0]]
    assert len(response[0]) == 2
    total_time = time.time() - st_time
    logger.info(f"topicalchat_{TOPIC_NAME}_tfidf_retrieval exec time: {total_time:.3f}s")
    logger.info(response)
    return jsonify(response)