## 运行 Agent

### 按照 Jupyter Notebook 中的步骤完成 Agent 运行

1. 点击 [VS Code](${LAB:HTTPS_REVERSE_PROXY_URL}?next=${LAB:"/vscode/?folder=/root/tidb-lab-ai/solutions/graphrag-agent/en"|urlencode} "VS Code") 打开 IDE。

   > [!TIP]
   > 出现提示时，请在弹窗中点击 `Yes, I trust the authors`（是的，我信任这些作者）。

2. 点击左侧 `EXPLORER` 内的 Jupyter Notebook `graphrag-agent.ipynb`。

    ![GraphRAG Agent Jupyter Notebook in VS Code](https://lab-static.pingcap.com/images/2025/9/1/e17f6c8014ff34f2369a77a1a230e63d34607354.png)

3. 在打开 Jupyter Notebook 后，点击右上角的 `Select Kernel`, 在弹出框中选择 `Python Environments...` 选项。

    ![Select Python Environments](https://lab-static.pingcap.com/images/2025/9/1/03ca792dad41e5c480b5d5021058c225a6d3d5d3.png)

4. 选择推荐的 `Python 3.11.11` 选项。
5. 随后，你就可以跟随 Jupyter Notebook 内的说明完成本 Module 啦。
6. 如果你想了解更多关于 Jupyter Notebook 的信息，请参考 [Jupyter Project 文档](https://docs.jupyter.org/en/latest/)。
