Reason-based RAG for Early-Stage Developers for Community-based Prospecting (RE-STEP)
Project description
RESTEP
Reason-based RAG for Early-Stage Developers for Community-based Prospecting (RE-STEP) is a GenAI prospecting tool to assess community-based factors in early-stage renewable-energy siting. It is targeted for early-stage developers in the renewable energy industry.
Requirements
Required packages
The following packages are required for restep:
-
torch(to learn how to install, please refer to pytorch.org) -
transformers -
accelerate -
safetensors -
sentencepiece -
bitsandbytes -
requests -
PyPDF2 -
python-docx -
langchain -
tqdm
To install these packages, you can do the following:
pip install torch transformers accelerate safetensors sentencepiece bitsandbytes requests PyPDF2 python-docx langchain tqdm
GPU requirements
You require at least one GPU to use restep.
VRAM requirements depend on factors like the length of the document.
However, at least 16GB of VRAM is recommended
huggingface access token
You will need a huggingface access token. To obtain one:
-
you'd first need to create a huggingface account if you do not have one.
-
Create and store a new access token. To learn more, please refer to huggingface.co/docs/hub/en/security-tokens.
-
Note: Some pre-trained large language models (LLMs) may require permissions. For more information, please refer to huggingface.co/docs/hub/en/models-gated.
-
Request for permission for
meta-llama/Llama-3.1-8B-Instructat https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct.
Installation
To install in python, simply do the following:
pip install restep
Quick Start
Here we provide a quick example on how you can execute restep by providing a link to the local government document and your huggingface API key.
from restep import restep
api_key="<your huggingface API key>"
url_to_local_government_document"https://www.co.marshall.in.us/egov/documents/1739816106_82896.pdf"
print(restep(url_to_local_government_document,api_key))
# This will return: {"Sentiment": "NEGATIVE", "Summary": "Opposition from residents and board members, citing concerns over property values, wildlife, and agricultural land, with some board members questioning the project's compliance with the ordinance and requesting additional conditions."}
How does RE-STEP work?
Our paper is currently under review at ACM BuildSys '25. Stay-tuned for updates if you are curious for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file restep-0.0.3.tar.gz.
File metadata
- Download URL: restep-0.0.3.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac5bc5ee43ca5a5e09e1fa894124541496fd685acfb4ee02f18c3226f4ccd8bc
|
|
| MD5 |
5aa77f5b72f30e9bb899163c247afdac
|
|
| BLAKE2b-256 |
30625491f1d78b674ff971e8488494dc01edcf950dfa427a31246c0235595415
|
File details
Details for the file restep-0.0.3-py3-none-any.whl.
File metadata
- Download URL: restep-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b084981c72e96ae12d205f6412638c6316a4df110bb0b9adf68760fa41ff1b08
|
|
| MD5 |
f1ae3f0fd1976d69dab044de8070d759
|
|
| BLAKE2b-256 |
e469318f1ec6dc0a075b32977ee82e80a9e4e7cb09bffa854998e122a949d190
|