> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.vectordb.utils.chroma_results_to_query_results

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### chroma\_results\_to\_query\_results

```python theme={null}
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.<br />

<b>Parameters:</b>

| Name                      | Description                                                                                                      |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `data_dict`               | A dictionary where keys map to lists of lists or None.<br /><br />**Type:** dict\[str, list\[list\[typing.Any]]] |
| `special_key='distances'` |                                                                                                                  |

<b>Returns:</b>

| Type                                                                                                          | Description                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| list\[list\[tuple\[[Document](/docs/api-reference/autogen/agentchat/contrib/vectordb/base/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. |

<br />
