Skip to content
프로젝트

소개

멀티모달 RAG 사용 사례에 맞춰 ColPali를 학습하고, 미세 조정하고, 적용하는 방법을 담은 가이드입니다. 👨🏻‍🍳

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ColPali Cookbooks 👨🏻‍🍳

arXiv Hugging Face X

[ColPali Engine] [ViDoRe Benchmark]

Introduction

ColPali is a model designed to retrieve documents by analyzing their visual features. Unlike traditional systems that rely heavily on text extraction and OCR, ColPali treats each page as an image. It uses Paligemma-3B to capture not only text, but also the layout, tables, charts, and other visual elements to create detailed multi-vector embeddings that can be used for retrieval by computing pairwise late interaction similarity scores. This offers a more comprehensive understanding of documents and enables more efficient and accurate retrieval.

This repository contains notebooks for learning about the ColVision family of models, fine-tuning them for your specific use case, creating similarity maps to interpret their predictions, and more! 😍

Table of Contents

You can find the cookbooks in the examples directory. In the table below, they are listed from most recent to oldest.

Task Notebook Description
Inference, interpretability Use the 🤗 transformers-native ColQwen2 Use the 🤗 transformers-native implementation of ColQwen2 for inference, scoring, and interpretability.
Inference, interpretability Use the 🤗 transformers-native ColPali Use the 🤗 transformers-native implementation of ColPali for inference, scoring, and interpretability.
RAG ColQwen2: One model for your whole RAG pipeline with adapter hot-swapping 🔥 Save VRAM by using a unique VLM for your entire RAG pipeline. Works even on Colab's free T4 GPU!
Interpretability ColQwen2: Generate your own similarity maps 👀 Generate your own similarity maps to interpret ColQwen2's predictions.
Interpretability ColPali: Generate your own similarity maps 👀 Generate your own similarity maps to interpret ColPali's predictions.
Fine-tuning Fine-tune ColPali 🛠️ Fine-tune ColPali using LoRA and optional 4bit/8bit quantization.

Instructions

Open with Colab

The easiest way to use the notebooks is to open them from the examples directory and click on the Colab button below:

Colab

This will open the notebook in Google Colab, where you can run the code and experiment with the models.

Run locally

If you prefer to run the notebooks locally, you can clone the repository and open the notebooks in Jupyter Notebook or in your IDE.

Citation

ColPali: Efficient Document Retrieval with Vision Language Models

Authors: Manuel Faysse*, Hugues Sibille*, Tony Wu*, Bilel Omrani, Gautier Viaud, Céline Hudelot, Pierre Colombo (* denotes equal contribution)

@misc{faysse2024colpaliefficientdocumentretrieval,
      title={ColPali: Efficient Document Retrieval with Vision Language Models}, 
      author={Manuel Faysse and Hugues Sibille and Tony Wu and Bilel Omrani and Gautier Viaud and Céline Hudelot and Pierre Colombo},
      year={2024},
      eprint={2407.01449},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2407.01449}, 
}

관련 프로젝트 살펴보기

불러오는 중…