def get_dotProduct(x, dict_y):
    """
    Computes the dot product between two vectors. The higher the better.

    :param x: vector of appearances of the query object
    :param dict_y: dictionnary of appearances of the candidates objects
    """
    similarity = {key: x.dot(y) for key, y in dict_y.items()}
    return similarity