NREL-elm 0.0.31
Energy Language Model
License: BSD 3-Clause
Requires Python: >=3.9
Keywords: elm

***************************
Energy Language Model (ELM)
***************************

.. image:: https://github.com/NREL/elm/workflows/Documentation/badge.svg
    :target: https://nrel.github.io/sup3r/

.. image:: https://github.com/NREL/elm/workflows/pytests/badge.svg
    :target: https://github.com/NREL/elm/actions?query=workflow%3A%22pytests%22

.. image:: https://github.com/NREL/elm/workflows/Lint%20Code%20Base/badge.svg
    :target: https://github.com/NREL/elm/actions?query=workflow%3A%22Lint+Code+Base%22

.. image:: https://img.shields.io/pypi/pyversions/NREL-elm.svg
    :target: https://pypi.org/project/NREL-elm/

.. image:: https://badge.fury.io/py/NREL-elm.svg
    :target: https://badge.fury.io/py/NREL-elm

.. image:: https://zenodo.org/badge/690793778.svg
  :target: https://zenodo.org/doi/10.5281/zenodo.10070538

The Energy Language Model (ELM) software provides interfaces to apply Large Language Models (LLMs) like ChatGPT and GPT-4 to energy research. For example, you might be interested in:

- `Converting PDFs into a text database <https://nrel.github.io/elm/_autosummary/elm.pdf.PDFtoTXT.html#elm.pdf.PDFtoTXT>`_
- `Chunking text documents and embedding into a vector database <https://nrel.github.io/elm/_autosummary/elm.embed.ChunkAndEmbed.html#elm.embed.ChunkAndEmbed>`_
- `Performing recursive document summarization <https://nrel.github.io/elm/_autosummary/elm.summary.Summary.html#elm.summary.Summary>`_
- `Building an automated data extraction workflow using decision trees <https://nrel.github.io/elm/_autosummary/elm.tree.DecisionTree.html#elm.tree.DecisionTree>`_
- `Building a chatbot app that interfaces with reports from OSTI <https://github.com/NREL/elm/tree/main/examples/energy_wizard>`_

Installing ELM
==============

.. inclusion-install

NOTE: If you are installing ELM to run ordinance scraping and extraction,
see the `ordinance-specific installation instructions <https://github.com/NREL/elm/blob/main/elm/ords/README.md>`_.

Option #1 (basic usage):

#. ``pip install NREL-elm``

Option #2 (developer install):

#. from home dir, ``git clone git@github.com:NREL/elm.git``
#. Create ``elm`` environment and install package
    a) Create a conda env: ``conda create -n elm``
    b) Run the command: ``conda activate elm``
    c) ``cd`` into the repo cloned in 1.
    d) Prior to running ``pip`` below, make sure the branch is correct (install
       from main!)
    e) Install ``elm`` and its dependencies by running:
       ``pip install .`` (or ``pip install -e .`` if running a dev branch
       or working on the source code)

.. inclusion-acknowledgements

Acknowledgments
===============

This work was authored by the National Renewable Energy Laboratory, operated by Alliance for Sustainable Energy, LLC, for the U.S. Department of Energy (DOE) under Contract No. DE-AC36-08GO28308. Funding provided by the DOE Wind Energy Technologies Office (WETO), the DOE Solar Energy Technologies Office (SETO), and internal research funds at the National Renewable Energy Laboratory. The views expressed in the article do not necessarily represent the views of the DOE or the U.S. Government. The U.S. Government retains and the publisher, by accepting the article for publication, acknowledges that the U.S. Government retains a nonexclusive, paid-up, irrevocable, worldwide license to publish or reproduce the published form of this work, or allow others to do so, for U.S. Government purposes.