## Agentの実行

### Jupyter Notebookの手順に従ってAgentの実行を完了してください

1. [VS Code](${LAB:HTTPS_REVERSE_PROXY_URL}?next=${LAB:"/vscode/?folder=/root/tidb-lab-ai/solutions/graphrag-agent/ja"|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/7/22/e5a3bd69b1815009b21ad9535cfee8d76e492b3b.png)

3. Jupyter Notebookを開いたら、右上の `Select Kernel` をクリックし、ポップアップで `Python Environments...` を選択します。

    ![Select Python Environments](https://lab-static.pingcap.com/images/2025/7/22/4dc03f53a0636e632cb7959bab4f16d3a47e80d8.png)

4. 推奨されている `Python 3.11.11` を選択します。
5. あとはJupyter Notebook内の説明に従って、このモジュールを進めてください。
6. Jupyter Notebookの詳細は [Jupyter Project ドキュメント](https://docs.jupyter.org/en/latest/) をご参照ください。
