Add natural gas pipelines one-shot extraction plugin - #522
Conversation
Restore geothermal schema/plugin to the latest tuned recall state (v2.2.2 + collection prompt tuning), and add adaptive OpenAI service retry behavior that removes provider-rejected call kwargs (e.g., temperature) and retries safely. Also adds runtime-focused tests for unsupported-kwarg recovery and non-recoverable error passthrough. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address PR review feedback: correct the module docstring typo and bound the number of unsupported top-level kwarg drops per request so provider rejections cannot trigger unbounded paid retries.
Add a schema-driven one-shot plugin covering natural gas pipelines and compressor stations, including the extraction schema and plugin config, and register the extractor so the `natural_gas_pipelines` technology is available in the plugin registry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
==========================================
+ Coverage 63.82% 63.98% +0.15%
==========================================
Files 78 78
Lines 7445 7446 +1
Branches 755 755
==========================================
+ Hits 4752 4764 +12
+ Misses 2532 2523 -9
+ Partials 161 159 -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:
|
There was a problem hiding this comment.
Pull request overview
Adds a new one-shot extraction plugin for natural gas pipelines and compressor stations, extending the existing schema-based extraction framework under compass.extraction and registering the extractor for package-level access.
Changes:
- Added
natural_gas_pipelinesextraction package with plugin config + JSON schema. - Wired the new extractor into
compass.extractionandcompasstop-level exports.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
compass/extraction/natural_gas_pipelines/plugin_config.yaml |
Defines queries, crawl/heuristic keywords, and the extraction system prompt for the new tech. |
compass/extraction/natural_gas_pipelines/natural_gas_pipelines_schema.json |
Introduces the one-shot structured output schema and extraction instructions/QA checklist. |
compass/extraction/natural_gas_pipelines/__init__.py |
Creates the schema-based one-shot extractor from the packaged config. |
compass/extraction/__init__.py |
Registers the new extractor in the extraction package exports. |
compass/__init__.py |
Re-exports the extractor at the top-level compass package. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Stacked on #521. Adds the natural_gas_pipelines one-shot plugin (schema + config) and registers the extractor.