VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documents
VisRAG
is a novel vision-language model (VLM)-based RAG pipeline. In this pipeline, instead of first parsing the document to obtain text, the document is directly embedded using a VLM as an image and then retrieved to enhance the generation of a VLM.Compared to traditional text-based RAG,
VisRAG
maximizes the retention and utilization of the data information in the original documents, eliminating the information loss introduced during the parsing process.
VisRAG Pipeline
VisRAG-Ret
VisRAG-Ret
is a document embedding model built on
MiniCPM-V 2.0
, a vision-language model that integrates
SigLIP
as the vision encoder and
MiniCPM-2B
as the language model.
VisRAG-Gen
In the paper, We use MiniCPM-V 2.0, MiniCPM-V 2.6 and GPT-4o as the generators. Actually you can use any VLMs you like!
Training
VisRAG-Ret
Our training dataset of 362,110 Query-Document (Q-D) Pairs for
VisRAG-Ret
is comprised of train sets of openly available academic datasets (34%) and a synthetic dataset made up of pages from web-crawled PDF documents and augmented with VLM-generated (GPT-4o) pseudo-queries (66%).
VisRAG-Gen
The generation part does not use any fine-tuning; we directly use off-the-shelf LLMs/VLMs for generation.
The models and weights of
VisRAG-Ret
are completely free for academic research. After filling out a
"questionnaire"
for registration,
VisRAG-Ret
weights are also available for free commercial use.
VisRAG-Ret huggingface.co is an AI model on huggingface.co that provides VisRAG-Ret's model effect (), which can be used instantly with this openbmb VisRAG-Ret model. huggingface.co supports a free trial of the VisRAG-Ret model, and also provides paid use of the VisRAG-Ret. Support call VisRAG-Ret model through api, including Node.js, Python, http.
VisRAG-Ret huggingface.co is an online trial and call api platform, which integrates VisRAG-Ret's modeling effects, including api services, and provides a free online trial of VisRAG-Ret, you can try VisRAG-Ret online for free by clicking the link below.
openbmb VisRAG-Ret online free url in huggingface.co:
VisRAG-Ret is an open source model from GitHub that offers a free installation service, and any user can find VisRAG-Ret on GitHub to install. At the same time, huggingface.co provides the effect of VisRAG-Ret install, users can directly use VisRAG-Ret installed effect in huggingface.co for debugging and trial. It also supports api for free installation.