Skip to content

Commit

Permalink
Merge pull request #1640 from Mephistic/llm-summary
Browse files Browse the repository at this point in the history
Adding base summary field to bill models
  • Loading branch information
Mephistic authored Nov 3, 2024
2 parents 7ed1368 + 4243816 commit 87a4b79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/db/bills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type Bill = {
currentCommittee?: CurrentCommittee
city?: string
topics?: string[]
summary?: string
}

export function useBill(court: number, id: string) {
Expand Down
3 changes: 2 additions & 1 deletion functions/src/bills/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ export const Bill = withDefaults(
similar: Array(Id),
currentCommittee: Optional(CurrentCommittee),
city: Optional(String),
topics: Optional(Array(String))
topics: Optional(Array(String)),
summary: Optional(String)
}),
{
court: 0,
Expand Down
3 changes: 2 additions & 1 deletion scripts/firebase-admin/generateBill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export const script: Script = async ({ db, args }) => {
fetchedAt: Timestamp.now(),
history: [],
similar: [],
topics: []
topics: [],
summary: "This is the summary"
}
console.log(`/generalCourts/${court}/bills/${id}`)
const billRef = db.collection(`/generalCourts/${court}/bills`).doc(`${id}`)
Expand Down
3 changes: 2 additions & 1 deletion stories/organisms/billDetail/MockBillData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ export const bill: Bill = {
topics: [
"Criminal investigation, prosecution, interrogation",
"Criminal sentencing"
]
],
summary: "This is the summary"
}

0 comments on commit 87a4b79

Please sign in to comment.