This project contains a hallucination detection pipeline based on RAGTruth.
merge_script.py is a script used to merge the LoRA model with a base model. Usage:
bash lora_merge.sh
The LLM inference is based on huggingface TGI. Usage:
bash TGI.sh
We use AsyncInferenceClient to inference asynchronously. Usage:
bash hall_inference.sh
The computation pipeline is given in compute_metrics.py. Usage:
bash compute_metrics.sh