-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
57 lines (51 loc) · 1.93 KB
/
setup.sh
File metadata and controls
57 lines (51 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Automated setup script for Deep Research From Scratch
# Run this after: uv sync
set -e
echo "🚀 Deep Research From Scratch - Automated Setup"
echo "================================================"
echo ""
# Check if .venv exists
if [ ! -d ".venv" ]; then
echo "❌ Error: .venv not found"
echo "Please run 'uv sync' first to create the virtual environment"
exit 1
fi
# Step 1: Create .env file if it doesn't exist
echo "📝 Step 1: Setting up .env file..."
if [ -f ".env" ]; then
echo " ℹ️ .env already exists - skipping"
else
if [ -f ".env.example" ]; then
cp .env.example .env
echo " ✅ Created .env from .env.example"
echo " ⚠️ IMPORTANT: Edit .env and add your API keys:"
echo " - TAVILY_API_KEY (get from https://tavily.com)"
echo " - GOOGLE_API_KEY (get from https://aistudio.google.com/app/apikey)"
else
echo " ❌ .env.example not found - please create .env manually"
fi
fi
# Step 2: Install Jupyter kernel
echo ""
echo "🔧 Step 2: Installing Jupyter kernel..."
source .venv/bin/activate
python -m ipykernel install --user --name=deep-research --display-name="Deep Research (venv)" 2>/dev/null && \
echo " ✅ Jupyter kernel installed successfully" || \
echo " ⚠️ Kernel may already be installed (this is okay)"
# Step 3: Verify setup
echo ""
echo "✅ Setup Complete!"
echo ""
echo "📋 Next Steps:"
echo " 1. Edit .env file with your API keys (if you haven't already)"
echo " 2. For LangGraph Studio:"
echo " → Run: uv run langgraph dev --allow-blocking"
echo " → Open: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024"
echo ""
echo " 3. For Jupyter Notebooks:"
echo " → Run: uv run jupyter notebook"
echo " → Select kernel: 'Deep Research (venv)'"
echo " → See notebooks/README.md for detailed instructions"
echo ""
echo "🎉 You're all set! Happy researching!"