> ## 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.graph_rag.Document

<h2 id="autogen.agentchat.contrib.graph_rag.Document" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">Document</span>
</h2>

```python theme={null}
Document(
    doctype: DocumentType,
    data: Any | None = None,
    path_or_url: str | None = &lt;factory&gt;
)
```

A wrapper of graph store query results.

<b>Parameters:</b>

| Name          | Description                                                                                             |
| ------------- | ------------------------------------------------------------------------------------------------------- |
| `doctype`     | **Type:** [DocumentType](/docs/api-reference/autogen/agentchat/contrib/graph_rag/document/DocumentType) |
| `data`        | **Type:** Any \| None<br /><br />**Default:** None                                                      |
| `path_or_url` | **Type:** str \| None<br /><br />**Default:** \<factory>                                                |

### Instance Attributes

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

#### data

<br />

<br />

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

#### doctype

<br />

<br />

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

#### path\_or\_url

<br />

<br />
