-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_simple_quick.sh
More file actions
executable file
·46 lines (39 loc) · 1.23 KB
/
test_simple_quick.sh
File metadata and controls
executable file
·46 lines (39 loc) · 1.23 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
#!/bin/bash
# Quick SIMPLE_RAG test with a very simple query
BACKEND_URL="http://af3615e06391145bc88022ac024a36ca-bd296660cda3522f.elb.us-west-2.amazonaws.com"
echo "Testing SIMPLE_RAG with quick query..."
echo ""
curl -X POST "${BACKEND_URL}/research" \
-H "Content-Type: application/json" \
-d '{
"topic": "What is the tariff for chocolate?",
"report_organization": "Very brief answer",
"collection": "us_tariffs",
"search_web": false,
"strategy": "auto"
}' 2>&1 | python3 -c "
import sys, json
try:
data = json.load(sys.stdin)
print('✅ Response received')
print('')
print('📊 Execution Path:', data.get('execution_path', 'N/A'))
print('')
print('📚 CITATIONS:')
print('-' * 80)
citations = data.get('citations', 'No citations')
print(citations)
print('-' * 80)
print('')
# Check quality
if '[unknown]' in citations:
print('❌ Found [unknown] references')
elif '[]' in citations and 'http' in citations:
print('⚠️ Found empty brackets (missing titles)')
else:
print('✅ All sources properly formatted!')
print('')
print('📝 Logs:', data.get('logs', []))
except Exception as e:
print(f'❌ Error: {e}')
"