feat: add context enrichment scaffold for weather and jurisdiction fields#485
Open
Harshvardhan-91 wants to merge 1 commit intofireform-core:mainfrom
Open
feat: add context enrichment scaffold for weather and jurisdiction fields#485Harshvardhan-91 wants to merge 1 commit intofireform-core:mainfrom
Harshvardhan-91 wants to merge 1 commit intofireform-core:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes: #484
Adds a provider-agnostic context enrichment scaffold for enriching incident reports with trusted weather and geographic context.
This PR introduces a small backend architecture layer that can later support providers such as NOAA, OpenStreetMap, Nominatim, or local department boundary datasets.
The goal is to avoid asking the LLM to infer objective facts such as weather, coordinates, jurisdiction, or district when those values can eventually come from deterministic trusted sources.
Why
FireForm’s core pipeline currently depends heavily on narrative extraction from text/voice input.
For many emergency and wildfire reports, some fields are factual environmental/geographic context rather than narrative facts. Examples include:
These values are important for incident reporting, but they should not be guessed by an LLM.
This PR creates the foundation for a future enrichment step where:
Future scope
This could later be extended into a unified quality scoring layer across extraction, validation, and enrichment signals