build backend to collect and search using embeddings

This commit is contained in:
2025-01-04 00:15:29 -07:00
parent c4521af5c2
commit 3be1648ee4
16 changed files with 679 additions and 489 deletions

33
backend/types/utah.go Normal file
View File

@ -0,0 +1,33 @@
package types
// UtahBill is a struct that represents a bill in the Utah legislature
type UtahBill struct {
Bill string `json:"bill"`
Version string `json:"version"`
ShortTitle string `json:"shorttitle"`
Sponsor string `json:"sponsor"`
FloorSponsor string `json:"floorsponsor"`
GeneralProvisions string `json:"generalprovisions"`
HilightedProvisions string `json:"hilightedprovisions"`
Monies string `json:"monies"`
Attorney string `json:"attorney"`
FiscalAnalyst string `json:"fiscalanalyst"`
LastAction string `json:"lastaction"`
LastActionOwner string `json:"lastactionowner"`
LastActionTime string `json:"lastactiontime"`
TrackingID string `json:"trackingid"`
Subjects []string `json:"subjects"`
CodeSections []string `json:"codesections"`
Agendas []string `json:"agendas"`
}
// UtahBillListItem is a struct that represents a bill in a list of bills
type UtahBillListItem struct {
Number string `json:"number"`
UpdateTime string `json:"updatetime"`
}
// UtahBillList is a struct that represents a list of bills in the Utah legislature
type UtahBillList struct {
Bills []UtahBillListItem `json:"bills"`
}