Repository navigation
Wind/solar one-shot schemas - #615
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Conflicting omission rules, wind classification exclusions, and collection filters can discard supported evidence or produce schema-invalid output.
5 open issues
What changed in this PR
Adds wind and solar extraction plugins to COMPASS’s schema-driven one-shot pipeline, alongside updates to existing technology prompts and document selection.
Changes:
- Registers
wind-osandsolar-osplugins with schemas, collection prompts, and extraction guidance. - Updates geothermal and oil/gas extraction guidance, adds oil/gas evidence excerpts, and adjusts document ranking and validation.
- Expands tests for feature coverage, prompt compatibility, examples, and technology heuristics.
| File | Description |
|---|---|
tests/python/unit/plugin/test_plugin_one_shot_base.py |
Adds wind/solar contract tests and expands schema export coverage. |
compass/validation/graphs.py |
Adds model ordinances to proposal-stage indicators. |
compass/scripts/download.py |
Prioritizes document year in ranking. |
compass/plugin/ordinance.py |
Simplifies shared verbatim-extraction instructions. |
compass/plugin/one_shot/components.py |
Simplifies one-shot text-filtering instructions. |
compass/extraction/wind/plugin.py |
Revises legacy wind search queries. |
compass/extraction/wind_os/wind_schema.json5 |
Defines wind features, evidence rules, and examples. |
compass/extraction/wind_os/plugin_config.yaml |
Configures wind discovery, filtering, and extraction. |
compass/extraction/wind_os/__init__.py |
Registers the wind-os plugin. |
compass/extraction/solar_os/solar_schema.json5 |
Defines solar features, decision rules, and examples. |
compass/extraction/solar_os/plugin_config.yaml |
Configures solar discovery, filtering, and extraction. |
compass/extraction/solar_os/__init__.py |
Registers the solar-os plugin. |
compass/extraction/oil_gas_wells/plugin_config.yaml |
Refines collection criteria and adds a system prompt. |
compass/extraction/oil_gas_wells/oil_and_gas_wells_schema.json |
Adds verbatim evidence and revises scope and examples. |
compass/extraction/geothermal_electricity/plugin_config.yaml |
Refines collection criteria and adds a system prompt. |
compass/extraction/geothermal_electricity/geothermal_schema.json |
Moves scope guidance into a top-level field. |
compass/extraction/__init__.py |
Exports the new wind and solar plugins. |
compass/__init__.py |
Exposes new plugins and existing natural-gas/transmission extractors. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #615 +/- ##
==========================================
+ Coverage 76.64% 76.90% +0.25%
==========================================
Files 85 85
Lines 9870 9871 +1
Branches 1086 1086
==========================================
+ Hits 7565 7591 +26
+ Misses 2097 2070 -27
- Partials 208 210 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was previously deployed
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.

Add support for wind and solar one-shot schemas