A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.
VisionRAG (Multimodal Search & VQA)
A visual-first search engine that allows you to "talk" to your images and PDF documents. It combines visual similarity search with advanced Visual Question Answering (VQA).
Principal Functionalities
- Visual Retrieval Augmented Generation (VisionRAG): Unlike text-only RAG, this system breaks down PDFs and images into visual segments and uses Cohere Embed-v4 to find the most relevant visual context for your question.
- Multimodal Question Answering: Powered by Mistral Small (Vision), the system "looks" at the retrieved image or PDF page to answer specific questions about charts, diagrams, or photos.
- PDF-to-Visual Indexing: High-fidelity conversion of PDF pages into searchable visual chunks using PyMuPDF.
- Interactive Visual Chat: A dashboard that shows you exactly which part of the document the AI is looking at when it gives its answer.
Technical Context
- Intelligence: Mistral
mistral-small-latest(Vision-enabled) for multimodal understanding. - Embeddings: Cohere
embed-v4.0for high-accuracy visual search. - Processing: PyMuPDF and Pillow for document-to-image pipeline.
Prerequisites
- Python 3.9 or later
- A Cohere API key, get one free at cohere.com
- A Mistral API key, get one free at platform.mistral.ai
Demo

Setup & Execution
1. Requirements
From the vision_rag directory, install dependencies:
cd vision_rag
pip install -r requirements.txt
2. Environment
The application pulls your MISTRAL_API_KEY and COHERE_API_KEY from the root .env file.
3. Launch
streamlit run app.py
How to Use
- Upload: Load any image (PNG/JPG) or a multi-page PDF document.
- Interact: Ask a question like "What does the growth chart on page 3 indicate?" or "Describe the logo in this image."
- Verify: The system will display the most relevant visual segment side-by-side with its AI-generated answer.