Official repository for RAGViz: Diagnose and Visualize Retrieval-Augmented Generation [EMNLP 2024]
See the code
RAGViz
RAGViz (Retrieval Augmented Generation Visualization) is a tool that visualizes both document and token-level attention on the retrieved context feeded to the LLM to ground answer generation.
A basic demonstration of RAGViz is available here.
The following are the system configurations of our RAGViz demonstration:
pip install -r backend/requirements.txt.You can modify the snippets used for context in RAG by adding a new file and class in backend/snippet, adding it to backend/ragviz.py and frontend/src/app/components/search.tsx. We currently offer the following snippets:
New datasets for retrieval can be added using a new file and class in backend/search, and modifying backend/ragviz.py accordingly.
We currently have implemented both a implementation the following datasets:
Any model supported by HuggingFace transformers library can be used as the LLM backbone.
To apply vLLM for fast inference, the LLM backbone needs to be supported by vLLM. A list of vLLM supported model is available here.
You can set the model path of the model for RAG inside of backend/.env.example. We used meta-llama/Llama-2-7b-chat-hf for the demo.
64 followers · starred Nov 2024
Official repository for RAGViz: Diagnose and Visualize Retrieval-Augmented Generation [EMNLP 2024]
See the code
RAGViz
RAGViz (Retrieval Augmented Generation Visualization) is a tool that visualizes both document and token-level attention on the retrieved context feeded to the LLM to ground answer generation.
A basic demonstration of RAGViz is available here.
The following are the system configurations of our RAGViz demonstration:
pip install -r backend/requirements.txt.You can modify the snippets used for context in RAG by adding a new file and class in backend/snippet, adding it to backend/ragviz.py and frontend/src/app/components/search.tsx. We currently offer the following snippets:
New datasets for retrieval can be added using a new file and class in backend/search, and modifying backend/ragviz.py accordingly.
We currently have implemented both a implementation the following datasets:
Any model supported by HuggingFace transformers library can be used as the LLM backbone.
To apply vLLM for fast inference, the LLM backbone needs to be supported by vLLM. A list of vLLM supported model is available here.
You can set the model path of the model for RAG inside of backend/.env.example. We used meta-llama/Llama-2-7b-chat-hf for the demo.
64 followers · starred Nov 2024