Published October 29, 2026 | Version v1
Other Open

Software and Dataset for "Automating the Goal and Scope Phase of Agricultural Life Cycle Assessment Using Encoder-Classifier Benchmarking"

  • 1. ROR icon Cornell University

Description

# Goal and Scope Datasets based on HESTIA data - Evaluated on Livestock LCA

This study creates Goal and Scope LLM benchmarks as a multi-label text classification task, then evaluates LLMs on this benchmark for livestock LCA. The main folders include
data

## Files Overview

The root folder contains the Python scripts used in the study. There are eleven Python scripts and one folder. Details of each file or folder is provided below:

- `data/`: This folder contains four folders
- `hestia/`: LCA data downloaded from the HESTIA platform
- `dataset/`: CONTAINS THE GOAL AND SCOPE DATASET BENCHMARKS.
- `/original` contains the original dataset
- `/no_rag` without RAG
- `/rag with RAG`, also contains datasets for the ablation analysis
- `/recalculated` contains standardized dataset
- `/no_rag` without RAG
- `/rag` with RAG
- `/results/` contains the results from benchmarking 7 LLMs on the 14 datasets
- `/dataset_<dataset-type>\_<RAG boolean>\_<LCA task>/<model-developer>/<model-name>/`
- contains confusion matrices, list of errors and predictions, loss functions, and the test metrics for the model on a particular dataset
- scattered .csv, .xlsx and .png files containing summarized results and expected outputs
- `RAG-textract/`: contains the RAG files used as input to the vector database
- `small_rag/`: contains a few RAG files to test the workings of the vector database
- `constants.py` contains a list of constants for use in the project, including the names of tokenizing models
- `covariance.py` script for calculating the convariance and correlation between variables in the input dataset, as well as calculating the balance of the dataset
- `data_analysis.py` produces many figures and tables for the mansucript
- `data_cleaning.py` cleans HESTIA data
- `evaluate_models.py` evaluate LLMs on the goal and scope benchmark dataset
- `huggingface_login.py` script to log in to huggingface
- `main.py` script which can be used to reproduce results
- `make_data_table.py` cleans HESTIA data
- `qa_dataset_creation.py` creates multi-label text classification datasets from cleaned HESTIA data
- `rag.py` setup script for the vector database
- `rag_retrieval.py` retrieve relevant information from the vector database

## Requirements

To run the codes in this repository, python 3.11 was used and the package requirements can be found in requirements.txt.

## Reproduction

Requirements.txt is available in the root repository.

The training seed used was 42.

Expected outputs can be found in the data/dataset/results path

The executable script which will reproduce the results is `main.py`

## Citation

Please use the following citation when using the data, methods or results of this work:

TBD

Files

AI-GS_102926.zip

Files (368.1 MB)

Name Size
md5:46d807d42a175a1a921da3d85f3ded97
368.1 MB Preview Download

Additional details