This repository contains code associated with the paper "Transparent NLP: Using RAG and LLM Alignment for Privacy Q&A" by Popp et al. (2025). Each sub-directory contains data and scripts to get the analysis results.
The step to run each sub.directory is as follows:
- data_processing
- general_statistical_llm_based_metrics
- percentage_comparison
- PCA
There is an individual README.md file inside each sub-directory.
To run the code, follow these steps:
. Clone the repository:
```bash
git clone https://github.com/yourusername/your-repo.git
cd your-repo
```
-
Create a virtual environment (recommended):
python3 -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required packages:
pip install -r requirements.txt
Notes: You will be prompted to enter you OpenAI's API key as soon as you run the LLM-based code in the terminal.