Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: add debug output to see error details

LearningCircuit3b2203534612
diff --git a/.github/workflows/e2e-research-test.yml b/.github/workflows/e2e-research-test.yml
index 306aea882f..62a45981a3 100644
--- a/.github/workflows/e2e-research-test.yml
+++ b/.github/workflows/e2e-research-test.yml
@@ -48,15 +48,28 @@ jobs:
LDR_ITERATIONS: ${{ vars.LDR_ITERATIONS || '1' }}
MAX_DIFF_SIZE: ${{ vars.MAX_DIFF_SIZE || '8000' }}
run: |
- RESPONSE=$(python scripts/ldr-diff-research.py < diff.txt)
-
- # Check for errors
- if echo "$RESPONSE" | jq -e '.error' > /dev/null 2>&1; then
- ERROR=$(echo "$RESPONSE" | jq -r '.error')
- if [ "$ERROR" != "null" ] && [ -n "$ERROR" ]; then
- echo "❌ Error: $ERROR"
- exit 1
- fi
+ set +e
+ RESPONSE=$(python scripts/ldr-diff-research.py < diff.txt 2>&1)
+ EXIT_CODE=$?
+ set -e
+
+ echo "=== Script exit code: $EXIT_CODE ==="
+ echo "=== Response (first 2000 chars): ==="
+ echo "$RESPONSE" | head -c 2000
+ echo ""
+ echo "=== End response ==="
+
+ # Check if it's valid JSON
+ if ! echo "$RESPONSE" | jq . > /dev/null 2>&1; then
+ echo "❌ Response is not valid JSON"
+ exit 1
+ fi
+
+ # Check for errors in JSON
+ ERROR=$(echo "$RESPONSE" | jq -r '.error // empty')
+ if [ -n "$ERROR" ]; then
+ echo "❌ Error: $ERROR"
+ exit 1
fi
# Extract research