Spaces:
Sleeping
Sleeping
Commit History
-
fix: Add debug logging and follow-up question support
Riley +1: ClaudeDebugging improvements: 1. Added debug_grant() function to log complete grant data 2. Debug logging for first grant in search results 3. Debug logging for specific grant details Follow-up support: 1. smart_route() now accepts previous_grants parameter 2. Detects short follow-up questions (≤8 words with keywords like "sure", "more", "details") 3. Reuses previous grants for context 4. generate_response() tracks last grants on function object Diagnostic tools: - debug_data.py script to verify data loading - Checks snapshots, search index, and diagnoses issues - Helps identify if problem is in data, index, or context building Expected improvements: - Follow-ups like "you sure?" now reference previous grants - Console logs show what data is actually loaded - Can quickly diagnose missing funding data 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>65bb1b0