Skip to main content

INFRA-COMPASS is a tool that leverages Large Language Models (LLMs) to create and maintain an inventory of state and local codes and ordinances applicable to energy infrastructure.

Project description

License Zenodo PythonV PyPi Ruff Pixi Static Badge

INFRA-COMPASS is an innovative software tool that harnesses the power of Large Language Models (LLMs) to automate the compilation and continued maintenance of an inventory of state and local codes and ordinances pertaining to energy infrastructure.

Installing INFRA-COMPASS

The quickest way to install INFRA-COMPASS for users is from PyPi:

pip install nrel-compass

If you would like to install and run INFRA-COMPASS from source, we recommend using pixi:

git clone git@github.com:NREL/COMPASS.git; cd COMPASS
pixi run compass

Before performing any web searches (i.e. running the COMPASS pipeline), you will need to run the following command:

playwright install

If you are using pixi, don’t forget to prefix this command with pixi run or initialize a shell using pixi shell. For detailed instructions, see the installation documentation.

Quickstart

To run a quick INFRA-COMPASS demo, set up a personal OpenAI API key and run:

pixi run openai-solar-demo <your API key>

This will run a full extraction pipeline for two counties using gpt-4o-mini (costs ~$0.45). For more information on configuring an INFRA-COMPASS run, see the execution basics example.

Development

Please see the Development Guidelines if you wish to contribute code to this repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nrel_compass-0.11.2.tar.gz (573.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nrel_compass-0.11.2-py3-none-any.whl (577.3 kB view details)

Uploaded Python 3

File details

Details for the file nrel_compass-0.11.2.tar.gz.

File metadata

  • Download URL: nrel_compass-0.11.2.tar.gz
  • Upload date:
  • Size: 573.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for nrel_compass-0.11.2.tar.gz
Algorithm Hash digest
SHA256 58a647a156456eadd63fe467d15086704f2c0cd2d5ae438fa822e59bca290303
MD5 4e3c991f8773ed9c3d94f88bfe68cc1e
BLAKE2b-256 df90420d56aef27585ebc1d61087a974f84c8e643d93852264e3a6b5b24a8377

See more details on using hashes here.

File details

Details for the file nrel_compass-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: nrel_compass-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 577.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for nrel_compass-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b80f28f299d98ca392dadb6ba8f1c5dc055d562af782ea528a9278e47ca08b29
MD5 71c9b9b4fc0ba760a3f6b5f33d8a4690
BLAKE2b-256 30091bd543a4970e9c26e7387f45ca81df30fc4ac49f2fccbc10d9d99e8eb4da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page