π Multimodal RAG App π
Introducing the Multimodal RAG Appβyour ultimate solution for extracting and understanding information from complex PDF documents containing images, charts, tables, and graphs! ππ
This application leverages ColQwen2-v1.0, a state-of-the-art visual retriever based on Qwen2-VL-2B-Instruct with ColBERT strategy. ColQwen2 processes entire document pages as images, generating ColBERT-style multi-vector representations that capture both textual and visual cues, preserving each page's structure and context.
To streamline interactions with ColQwen2, we utilize the Byaldi library designed to facilitate the use of late-interaction multi-modal models like ColQwen with a familiar API, thereby enhancing the efficiency of document retrieval tasks.
π PDF Processing
π Multi-GPU Support
β‘ Hardware Acceleration
π Requirements
Before you begin, ensure you have the following installed:
π₯ Installing Poppler
For Linux (Ubuntu) π§
sudo apt-get install -y poppler-utils
For macOS π
brew install poppler
For Windows π₯οΈ
π οΈ Installation
Clone the repository:
git clone https://github.com/ahsannawazch/Multimodal-RAG.git
cd Multimodal-RAG
Install the required Python packages:
pip install -r requirements.txt
π Optional: Faster Model Downloads
If you have high bandwidth and want to download models quickly from Hugging Face, you can enable accelerated downloads:
Set the environment variable:
export HF_HUB_ENABLE_HF_TRANSFER=1
Install the hf_transfer package:
pip install hf_transfer
π Usage
Run the app:
chainlit run app.py
Upload a PDF: When prompted, upload your PDF file to begin indexing it on the disk.
Ask Questions: Once the PDF is uploaded and indexed, you can ask questions about the content, and the app will retrieve and display relevant information, including images and text.
Enjoy exploring your documents with the Multimodal RAG App! ππ
29 commits
Jupyter Notebook
73.5%
Python
26.5%
π Multimodal RAG App π
Introducing the Multimodal RAG Appβyour ultimate solution for extracting and understanding information from complex PDF documents containing images, charts, tables, and graphs! ππ
This application leverages ColQwen2-v1.0, a state-of-the-art visual retriever based on Qwen2-VL-2B-Instruct with ColBERT strategy. ColQwen2 processes entire document pages as images, generating ColBERT-style multi-vector representations that capture both textual and visual cues, preserving each page's structure and context.
To streamline interactions with ColQwen2, we utilize the Byaldi library designed to facilitate the use of late-interaction multi-modal models like ColQwen with a familiar API, thereby enhancing the efficiency of document retrieval tasks.
π PDF Processing
π Multi-GPU Support
β‘ Hardware Acceleration
π Requirements
Before you begin, ensure you have the following installed:
π₯ Installing Poppler
For Linux (Ubuntu) π§
sudo apt-get install -y poppler-utils
For macOS π
brew install poppler
For Windows π₯οΈ
π οΈ Installation
Clone the repository:
git clone https://github.com/ahsannawazch/Multimodal-RAG.git
cd Multimodal-RAG
Install the required Python packages:
pip install -r requirements.txt
π Optional: Faster Model Downloads
If you have high bandwidth and want to download models quickly from Hugging Face, you can enable accelerated downloads:
Set the environment variable:
export HF_HUB_ENABLE_HF_TRANSFER=1
Install the hf_transfer package:
pip install hf_transfer
π Usage
Run the app:
chainlit run app.py
Upload a PDF: When prompted, upload your PDF file to begin indexing it on the disk.
Ask Questions: Once the PDF is uploaded and indexed, you can ask questions about the content, and the app will retrieve and display relevant information, including images and text.
Enjoy exploring your documents with the Multimodal RAG App! ππ
29 commits
Jupyter Notebook
73.5%
Python
26.5%