Attacks (and Defenses) on Retrieval Augmented Generation (RAG)
Install phantom package
cd phantom
pip install -e .Point to folders where relevant data and results will be saved. Specifically, PHANTOM_DATA_PATH and PHANTOM_RESULTS_PATH should be set in the environment. If API-based models (e.g. OpenAI) will be used for transfer-experiments, please make sure OPENAI_KEY is also defined.
python rag_poison.py --config configs/test.yamlpython retriever_inference.py --config