You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is the official implementation of the papers
Setup
Please run the following commands to set up the environment:
conda create -n my_custom_env python=3.12
conda activate my_custom_env
pip install -r requirements.txt
Set up OpenAI API Key
Ensure your OpenAI API key is set as an environment variable.
export OPENAI_API_KEY="YOUR_OPENAI_API_KEY"export OPENAI_API_URL="YOUR_OPENAI_BASE_URL"# Optional, if using a custom endpoint
Citation
The citations for our attribution framework:
@inproceedings{si2025seconrag,
title={SeCon-{RAG}: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy {RAG}},
author={Xiaonan Si and Meilin Zhu and Simeng Qin and Lijia Yu and Lijun Zhang and Shuaitong Liu and Xinfeng Li and Ranjie Duan and Yang Liu and Xiaojun Jia},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://openreview.net/forum?id=tTwZhy8JqY}
}
About
code for SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAG