chroma_results_to_query_results

chroma_results_to_query_results(data_dict: dict[str, list[list[Any]]], special_key='distances') -> list[list[tuple[Document, float]]]

Converts a dictionary with list-of-list values to a list of tuples.

Parameters:
NameDescription
data_dictA dictionary where keys map to lists of lists or None.

Type: dict[str, list[list[typing.Any]]]
special_key='distances'
Returns:
TypeDescription
list[list[tuple[Document, float]]]A list of tuples, where each tuple contains a sub-dictionary with some keys from the original dictionary and the value from the special_key.