relevanceai.operations.vector.local_nearest_neighbours#

Module Contents#

relevanceai.operations.vector.local_nearest_neighbours.doc_utils#
class relevanceai.operations.vector.local_nearest_neighbours.NearestNeighbours(credentials: relevanceai.client.helpers.Credentials)#

_Base class for all relevanceai client utilities

static get_nearest_neighbours(documents: list, vector: list, vector_field: str, distance_measure_mode: relevanceai.operations.cluster.constants.NEAREST_NEIGHBOURS = 'cosine', callable_distance=None, score_field: str = 'nearest_neighbour_distance')#