Official Implementation of "LLM4BPM: Leveraging LLMs for Compliance Checking of Business Process Models"
-
output_com.txtcontains the code outputs for compliant process models located in.\LPD4VR-master\compliance. -
output_vio.txtcontains the code outputs for non-compliant (violation) process models located in.\LPD4VR-master\violation.
- Create conda environment.
conda install --yes --file requirements.txt # You may need to downgrade the torch using pip to match the CUDA version
- Evaluate on test dataset located in folder
LPD4VR-master.
-
Set the following variations in
main.pyclient = OpenAI( api_key = os.environ.get("OPENAI_API_KEY") # You can also pass the api_key as an argument directly ) rule_file = # i.e., r".\LPD4VR-master\rules.txt"; Path to the file containing the regulations bpmn_folder_path = # i.e., r".\LPD4VR-master\violance"; Directory path containing the BPMN 2.0 business process models -
Run
python main.pyfrom the root directory.