generated from finos-labs/ai-evals-use-case-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_test.sh
More file actions
executable file
·76 lines (68 loc) · 1.92 KB
/
run_test.sh
File metadata and controls
executable file
·76 lines (68 loc) · 1.92 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# Quick test script for FinSight Agent
echo "======================================================================"
echo "FinSight Agent - Quick Test Script"
echo "======================================================================"
echo ""
# Check if .env exists
if [ ! -f .env ]; then
echo "❌ .env file not found!"
echo ""
echo "Please create .env file from .env.example:"
echo " cp .env.example .env"
echo ""
echo "Then edit .env with your API keys:"
echo " - SCW_DEFAULT_PROJECT_ID"
echo " - SCW_SECRET_KEY"
echo " - TAVILY_API_KEY"
echo ""
exit 1
fi
echo "✅ .env file found"
echo ""
# Check if virtual environment is activated
if [ -z "$VIRTUAL_ENV" ]; then
echo "⚠️ Virtual environment not activated"
echo ""
echo "Activate it with:"
echo " source .venv/bin/activate # On macOS/Linux"
echo " .venv\\Scripts\\activate # On Windows"
echo ""
read -p "Continue anyway? (y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Run setup test
echo "Running setup test..."
echo ""
python test_setup.py
if [ $? -ne 0 ]; then
echo ""
echo "❌ Setup test failed. Please fix issues above."
exit 1
fi
echo ""
echo "======================================================================"
echo "Setup verified! You can now run the analysis."
echo "======================================================================"
echo ""
echo "Quick start commands:"
echo ""
echo "1. Run demo (interactive):"
echo " python demo.py"
echo ""
echo "2. Run CLI analysis:"
echo " python -m src.main \\"
echo " --transcript data/input/Alphabet_2025_Q1_Earnings_Call_complete_transcript.txt \\"
echo " --ticker GOOGL"
echo ""
echo "3. See all options:"
echo " python -m src.main --help"
echo ""
echo "4. View examples:"
echo " python examples.py"
echo ""
echo "Reports will be saved to: data/output/"
echo ""