Skip to content

Conversation

@nikhilwoodruff
Copy link
Contributor

Summary

  • Fixed 500 error when searching variables with tax_benefit_model_name filter - was referencing non-existent Variable.label field
  • Lite mode now seeds FRS 2026 and CPS 2026 datasets instead of skipping all datasets
  • Added hugging_face_token setting for dataset downloads

Test plan

  • Verified variables search works: GET /variables/?search=income&tax_benefit_model_name=policyengine-uk
  • Tested economy-wide analysis (abolish personal allowance = £133.7bn revenue, matching expectations)

nikhilwoodruff and others added 4 commits December 30, 2025 14:08
Variables don't have a label field, only name and description.
The search filter was referencing Variable.label which caused
500 errors when searching with tax_benefit_model_name filter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Lite mode now seeds FRS 2026 and CPS 2026 datasets instead of skipping all
- Added hugging_face_token setting for dataset downloads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fix tool name display with proper mapping (e.g. "Calculate household")
- Add conversation history support for multi-turn chat
- Move response styling to global CSS with Inter font
- Add PolicyEngine style guide to agent prompt (tables, active voice)
- Persist tool steps per message so they don't disappear
@nikhilwoodruff nikhilwoodruff force-pushed the fix-variables-search-bug branch from c93250b to b277187 Compare December 30, 2025 14:47
@nikhilwoodruff nikhilwoodruff merged commit 128408d into main Dec 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants