> ## 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.neo4j_native_graph_rag_capability.Neo4jNativeGraphCapability

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

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

```python theme={null}
Neo4jNativeGraphCapability(query_engine: Neo4jNativeGraphQueryEngine)
```

The Neo4j native graph capability integrates Neo4j native query engine into a graph rag agent.<br />For usage, please refer to example notebook/agentchat\_graph\_rag\_neo4j\_native.ipynb

Initialize GraphRAG capability with a neo4j native graph query engine

<b>Parameters:</b>

| Name           | Description                                                                                                                                                  |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `query_engine` | **Type:** [Neo4jNativeGraphQueryEngine](/docs/api-reference/autogen/agentchat/contrib/graph_rag/neo4j_native_graph_query_engine/Neo4jNativeGraphQueryEngine) |

### Instance Methods

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

#### add\_to\_agent

```python theme={null}
add_to_agent(self, agent: ConversableAgent) -> None
```

Add native Neo4j GraphRAG capability to a ConversableAgent.<br />llm\_config of the agent must be None/False (default) to make sure the returned message only contains information retrieved from the graph DB instead of any LLMs.

<b>Parameters:</b>

| Name    | Description                                                                |
| ------- | -------------------------------------------------------------------------- |
| `agent` | **Type:** [ConversableAgent](/docs/api-reference/autogen/ConversableAgent) |

<br />
