-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·61 lines (50 loc) · 1.93 KB
/
setup.sh
File metadata and controls
executable file
·61 lines (50 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
58
59
60
61
#!/bin/bash
# Lilac + Eval Protocol Setup Script
# Run: ./setup.sh
set -e
echo "🌸 Setting up Lilac + Eval Protocol environment..."
echo ""
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv .venv
fi
# Activate
source .venv/bin/activate
echo "✓ Virtual environment activated"
# Upgrade pip
pip install --upgrade pip -q 2>/dev/null
# Install eval-protocol with langfuse
echo "📦 Installing eval-protocol[langfuse]..."
pip install 'eval-protocol[langfuse]' -q 2>/dev/null
# Install lilac without deps (to avoid conflicts)
echo "📦 Installing lilac..."
pip install lilac --no-deps -q 2>/dev/null
# Install lilac's required dependencies
echo "📦 Installing lilac dependencies..."
pip install pandas duckdb pyarrow datasets modal cloudpickle orjson pillow tenacity itsdangerous instructor loky authlib -q 2>/dev/null
# Install clustering dependencies
echo "📦 Installing clustering dependencies..."
pip install umap-learn hdbscan hnswlib sentence-transformers -q 2>/dev/null
# Verify installation
echo ""
echo "🔍 Verifying installation..."
if python -c "import lilac; import eval_protocol" 2>/dev/null; then
echo "✅ Installation successful!"
else
echo "❌ Installation failed. Please check errors above."
exit 1
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Next steps:"
echo " 1. Copy env.template to .env and add your API keys:"
echo " cp env.template .env"
echo ""
echo " 2. Activate the environment:"
echo " source .venv/bin/activate"
echo ""
echo " 3. Run the example:"
echo " pytest test_lilac_preprocessing.py -v -s"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""