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 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:

rebrowser_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.35). 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.6.2.tar.gz (197.4 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.6.2-py3-none-any.whl (195.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nrel_compass-0.6.2.tar.gz
  • Upload date:
  • Size: 197.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nrel_compass-0.6.2.tar.gz
Algorithm Hash digest
SHA256 9d37b88e80b2789e0932915b9e02030347951e29eb69fbfb65154e80aa660dff
MD5 01f3d43c79a819fa9944e4de0f4e2f8f
BLAKE2b-256 c082997584a874a7a177c4f8d084384a4916a92290d61dfaee726f872465d291

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nrel_compass-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 195.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nrel_compass-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8de3f3192dd28d5ad59eb4ae0aa26d9a9105812a0dbfefdababa23f4dba4b32
MD5 ef6aa46f9480f8d96e551ca791edd542
BLAKE2b-256 9bc4c19d3d5a7907a493082f6571fbeb36061a54f469818ebf74bb3edcb25d11

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