Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACC-RAG

ACC-RAG is a simple Streamlit-based RAG app for asking questions over uploaded documents. It is inspired by the ACC-RAG paper, which proposes adaptive context compression to keep only the most useful information for answering a query efficiently.

Features

  • Upload and index documents.
  • Select the active document.
  • Ask questions in chat format.
  • View a logic trace for answer reasoning.
  • Manage documents from the sidebar.

Screenshots

Chat view

ChatView ChatView

Sidebar and document manager

Sidebar

Source Paper

This project is based on “Enhancing RAG Efficiency with Adaptive Context Compression” by Shuyu Guo, Shuo Zhang, and Zhaochun Ren. The paper introduces Adaptive Context Compression for RAG (ACC-RAG), a framework that dynamically adjusts compression rates based on query complexity and reports more than 4 times faster inference than standard RAG while maintaining or improving accuracy.

Paper link: ACC-RAG

Run

git clone https://github.com/pranjalparmar/Adaptive-Contextual-Compression-RAG.git
cd Adaptive-Contextual-Compression-RAG
pip install -r requirements.txt
streamlit run main.py

About

ACC-RAG is a simple Streamlit-based RAG app for asking questions over uploaded documents. It is inspired by the ACC-RAG paper, which proposes adaptive context compression to keep only the most useful information for answering a query efficiently.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages