utils
autogen.agentchat.contrib.vectordb.utils.chroma_results_to_query_results
chroma_results_to_query_results
Converts a dictionary with list-of-list values to a list of tuples.
Name | Description |
---|---|
data_dict | A dictionary where keys map to lists of lists or None. Type: dict[str, list[list[typing.Any]]] |
special_key='distances' |
Type | Description |
---|---|
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. |