From 946d56944ab6f60bdb7f607b1e08e32a4f2f0bca Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 4 Sep 2026 11:39:48 -0600 Subject: [PATCH 1/6] Add model --- compass/utilities/costs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compass/utilities/costs.py b/compass/utilities/costs.py index 19030cb3a..8a3d6d5dc 100644 --- a/compass/utilities/costs.py +++ b/compass/utilities/costs.py @@ -20,6 +20,7 @@ "gpt-5.6-sol": {"prompt": 5, "response": 30}, "gpt-5.6-terra": {"prompt": 2, "response": 12}, "gpt-5.6-luna": {"prompt": 0.2, "response": 1.2}, + "gpt-5.6-luna-aws": {"prompt": 0.22, "response": 1.32}, "compassop-gpt-4o": {"prompt": 2.5, "response": 10}, "compassop-gpt-4o-mini": {"prompt": 0.15, "response": 0.6}, "compassop-gpt-4.1": {"prompt": 2, "response": 8}, From 18cb660c36e24438a2f4e6203443cf8532f5ed5d Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 4 Sep 2026 11:40:00 -0600 Subject: [PATCH 2/6] Pass scope into system prompt format --- compass/plugin/one_shot/components.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compass/plugin/one_shot/components.py b/compass/plugin/one_shot/components.py index ce016611d..84162441f 100644 --- a/compass/plugin/one_shot/components.py +++ b/compass/plugin/one_shot/components.py @@ -462,12 +462,14 @@ async def parse(self, text, jurisdiction): ) todays_date = datetime.now().strftime("%B %d, %Y") + scope = self.SCHEMA.get("$scope") sys_prompt = ( f"{self.SYSTEM_PROMPT}\n\n{_DATA_PARSER_ADDITIONAL_CONTEXT}" ) sys_prompt = sys_prompt.format( desc=desc, schema=self.SCHEMA, + scope=scope or "unknown", todays_date=todays_date, jur_type=jurisdiction.type, jur_state=jurisdiction.state, From e6ae7f72ddc03fef9a637a03606fe25d817b33a3 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 4 Sep 2026 11:40:48 -0600 Subject: [PATCH 3/6] Add more non tech words --- compass/extraction/ghp/plugin_config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compass/extraction/ghp/plugin_config.yaml b/compass/extraction/ghp/plugin_config.yaml index 834ad84cc..ed73cb2f6 100644 --- a/compass/extraction/ghp/plugin_config.yaml +++ b/compass/extraction/ghp/plugin_config.yaml @@ -95,7 +95,9 @@ heuristic_keywords: - "injection well" - "wellbeing" - "well-being" + - "wellness" - "as well as" + - "theater" collection_prompts: True From 5878b99246ea2b8b7d5d0d7c8c81c6da6a966740 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 4 Sep 2026 11:41:02 -0600 Subject: [PATCH 4/6] Update extraction system prompt to use scope --- compass/extraction/ghp/plugin_config.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/compass/extraction/ghp/plugin_config.yaml b/compass/extraction/ghp/plugin_config.yaml index ed73cb2f6..110cc7537 100644 --- a/compass/extraction/ghp/plugin_config.yaml +++ b/compass/extraction/ghp/plugin_config.yaml @@ -102,11 +102,9 @@ heuristic_keywords: collection_prompts: True extraction_system_prompt: |- - You are a legal scholar extracting structured data from geothermal ground source heat pump ordinances. - Be focused and literal: extract only enacted, explicit, in-scope requirements. - Be thorough and complete: review all relevant sections, including tables and - lists, so no explicitly stated feature is missed. - Before finalizing, perform a feature-coverage check against the schema enum and - ensure each explicitly supported feature is captured exactly once. - Pay extra attention to any descriptions, instructions, examples, and definitions in the schema, - and be sure to follow all schema instructions carefully. + You are a legal scholar extracting structured data specifically about **geothermal ground source heat pumps, geothermal heat exchanges, or similar** from ordinance documents. + Be focused and literal: extract only enacted, explicit, in-scope requirements: {scope}. + Be thorough and complete: review all relevant sections, including tables and lists, so no explicitly stated feature is missed. + Before finalizing, perform a feature-coverage check against the schema enum and ensure each explicitly supported geothermal ground source heat pump, geothermal heat exchange, or similar feature is captured exactly once. + If there is no data to extract for geothermal ground source heat pumps, geothermal heat exchanges, or similar, or geothermal definitions, return an empty JSON object. Do not fabricate or infer any data. If a feature is not explicitly stated in the ordinance, leave it out of the output. + Pay extra attention to any descriptions, instructions, examples, and definitions in the schema, and be sure to follow all schema instructions carefully. From f4cb801b5f82867abc4fc09929bd6c76623eb958 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 8 Sep 2026 14:01:16 -0600 Subject: [PATCH 5/6] Minor language update --- compass/extraction/ghp/geothermal_heat_pump_schema.json5 | 2 +- compass/extraction/ghp/plugin_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compass/extraction/ghp/geothermal_heat_pump_schema.json5 b/compass/extraction/ghp/geothermal_heat_pump_schema.json5 index 99097e28b..3166aa99e 100644 --- a/compass/extraction/ghp/geothermal_heat_pump_schema.json5 +++ b/compass/extraction/ghp/geothermal_heat_pump_schema.json5 @@ -8,7 +8,7 @@ "properties": { "outputs": { "type": "array", - "description": "Sparse long-form extraction table. Include only features with an enacted, explicit requirement and emit **at most one row per feature**. Never infer, imply, or guess a requirement from related context.", + "description": "Sparse long-form extraction table. Include only features with an enacted, explicit requirement in the source text and emit **at most one row per feature**. Never infer, imply, or guess a requirement from related context. If no in-scope features exist in the source text, this should be an empty array.", "items": { "type": "object", "required": [ diff --git a/compass/extraction/ghp/plugin_config.yaml b/compass/extraction/ghp/plugin_config.yaml index 110cc7537..da4a779fa 100644 --- a/compass/extraction/ghp/plugin_config.yaml +++ b/compass/extraction/ghp/plugin_config.yaml @@ -106,5 +106,5 @@ extraction_system_prompt: |- Be focused and literal: extract only enacted, explicit, in-scope requirements: {scope}. Be thorough and complete: review all relevant sections, including tables and lists, so no explicitly stated feature is missed. Before finalizing, perform a feature-coverage check against the schema enum and ensure each explicitly supported geothermal ground source heat pump, geothermal heat exchange, or similar feature is captured exactly once. - If there is no data to extract for geothermal ground source heat pumps, geothermal heat exchanges, or similar, or geothermal definitions, return an empty JSON object. Do not fabricate or infer any data. If a feature is not explicitly stated in the ordinance, leave it out of the output. + If there is no data to extract for geothermal ground source heat pumps, geothermal heat exchanges, or similar, or geothermal definitions, return an empty array for the "outputs" array. Do not fabricate or infer any data. If a feature is not explicitly stated in the ordinance, leave it out of the output. Pay extra attention to any descriptions, instructions, examples, and definitions in the schema, and be sure to follow all schema instructions carefully. From 4884048deb34cc9d40e1bb2d0d32e12e680018b2 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 8 Sep 2026 14:02:29 -0600 Subject: [PATCH 6/6] Minor update --- compass/data/conus_jurisdictions.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/data/conus_jurisdictions.csv b/compass/data/conus_jurisdictions.csv index 0a3469ae0..f55bbd8f9 100644 --- a/compass/data/conus_jurisdictions.csv +++ b/compass/data/conus_jurisdictions.csv @@ -10242,7 +10242,7 @@ Illinois,Perry,Swanwick,precinct,1714593348, Illinois,Perry,Tamaroa No. 1,precinct,1714593384, Illinois,Perry,Tamaroa No. 2,precinct,1714593386, Illinois,Perry,Willisville,village,1781867, -Illinois,Perry,,county,17145,https://perryil.com/ +Illinois,Perry,,county,17145,https://perrycountyil.gov/ Illinois,Piatt,Bement,village,1705144, Illinois,Piatt,Blue Ridge,township,1714706808, Illinois,Piatt,Cerro Gordo,village,1712268,https://fathill.com/