YOUTUBE影片:https://youtu.be/xHJHfwYp00s

🔹 1. 安裝環境

🛠️ 必要條件

  1. Node.js 環境

    node -v
    npm -v
    

    image.png

  2. Git 環境

    git --version
    

    image.png


🔹 2. 克隆 GitHub Repository

在終端機 (Terminal) 或命令提示字元 (CMD) 中執行:

git clone <https://github.com/DZHNG/deep-research.git>

進入專案目錄:

cd deep-research

image.png


🔹 3. 安裝依賴

執行:

npm install

這將安裝 所有必要的 Node.js 套件

image.png


🔹 4. 設定環境變數

  1. 複製 .env.example 並重新命名為 .env.local

    cp .env.example .env.local
    
    1. 編輯 .env.local,填入 API Key

      • 使用 文字編輯器(如 VS Code、nano、vim)打開 .env.local

      • 添加 Firecrawl 和 OpenAI API Key:

        FIRECRAWL_KEY="your_firecrawl_key"
        OPENAI_KEY="your_openai_key"
        
    2. 如果使用本地 LLM(例如 OpenRouter 或 Gemini),可設定:

      OPENAI_ENDPOINT="<http://localhost:1234/v1>"
      OPENAI_MODEL="custom_model"
      

image.png

image.png


🔹 5. 執行 AI 研究助手

啟動 AI 研究助手:

npm start

⚡ 執行過程

  1. 系統提示輸入研究查詢

image.png

  1. 設定研究廣度與深度
  2. AI 會開始:

🔹 6. 查看輸出