Spaces:
Sleeping
Sleeping
Commit History
-
feat: source-derived Q&A with statewide CA ocean species coverage (#1)
Stephen S. LeeUnverified signatureSource-backed Q&A over the full California ocean sport-fishing species set. - 78 distinct species with source-verified facts (size/bag/season/closure), every value traced to a CDFW page or CCR Title 14: groundfish (RCG complex), halibut, surfperch, seabass, sharks, sturgeon, crab, salmon, SoCal gamefish (kelp/sand bass, sheephead, barracuda, bonito, yellowtail), nearshore species, invertebrates (spiny lobster, scallops, squid, clams), and no-take species. - Species resolution: model (MiniCPM) + deterministic name search with a guard that prefers specific user-typed aliases (length-aware scoring), plus a rule-card posture fallback for species without an extracted fact. - "Refresh official sources" applies live snapshot freshness to the session; structured facts stay curated and are never auto-derived from fetched HTML. - Answers state regulations directly (source shown in the evidence section). 171 tests pass; verified end-to-end on the local MiniCPM model server.c1b067e -
feat: redesign CoastWise UI (Ocean & Trust) and harden source freshness
Stephen Lee +1: Claude Opus 4.8 (1M context)UI/UX (ui-ux-pro-max "Ocean & Trust"): - Custom teal/navy theme with Lexend + Source Sans 3, branded header with offline-ready badge, status-badge answer cards, an honest "How CoastWise reached this answer" disclosure, example-question chips, light/dark pairing, responsive layout, and WCAG-minded contrast/focus. - Search-bar layout: the Ask button is embedded inside the question field. - Top source bar shows "Sources updated <time> - <freshness>" with a compact refresh icon button. Gradio 6 fixes: - Apply theme/css via launch() (silently ignored on gr.Blocks in Gradio 6). - Set answer text via the mode-adaptive --body-text-color so colors stay legible in light and dark (Gradio mangles .dark custom selectors and its ".prose *" rule outranks single-class colors). - Bounded, concurrent, offline-first Refresh that never hangs the UI, with a "Checking..." state and graceful "using last-good cache" messaging. Content/data: - Re-stamp the bundled seed cache to 2026-06-15 so an…4a604dd
-
feat: add official source cache foundation
Stephen Leea3c85ad -
feat: add real query cache coverage
Stephen Lee95941cd