codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.
https://mapletestimony.org
MIT License
44 stars 118 forks source link

Adding base summary field to bill models #1640

Open Mephistic opened 2 days ago

Mephistic commented 2 days ago

Problem

To start development of our new bill summary front-end features, we need to actually store the generated bill summaries somewhere.

Summary

This PR adds an optional summary field to our bill models that will contain the most recently generated LLM bill summary.

This is meant to give enough of an interface to unblock the front-end work - I expect there may be some additional summary storage to keep a historical archive of generated summaries as part of the actual summary backfill task, but I feel our most common query pattern is likely to just fetch the most recent summary whenever we fetch a bill, so I'd prefer to just keep a copy of that data on the bill itself anyway.

Checklist

Screenshots

N/A

Known issues

N/A

Steps to test/reproduce

  1. Go to the Browse Bills and Bill Details page
  2. See that it loads correctly
vercel[bot] commented 2 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 11:13pm