iTranslated by AI
Building a Local Image Search Application Using Qwen3-VL-Embedding
Introduction
Alibaba Cloud has released Qwen3-VL-Embedding.
In this article, I will summarize how to set up and use a multimodal local AI search system based on Qwen3-VL-Embedding, which I developed using Claude Code.
For details regarding Qwen3-VL-Embedding, please refer to the official repository.
This model enables multimodal search capabilities, such as "searching for images with text" or "searching for similar images with an image," by embedding both text and images into the same vector space.
Repository of the Created Code
You can find the code here, which forks the official repository and adds a WebUI and document management features.
It is easier to understand what this does by watching the video below.
Features at the time of writing
The specific added features are as follows:
- Supports Mac in addition to NVIDIA GPUs
- Supports
uvmanagement - Main functions
- Function to register plain text, images, and PDFs into the DB
- PDFs are converted into images page by page before being registered as images
- Vector search function
- Filtering function
- By user-specified collections (groups)
- Text, images, and PDFs
- Delete and download functions
- Markdown rendering display function
- Function to register plain text, images, and PDFs into the DB
Usage
Instructions for a Mac environment are provided below. It has also been confirmed to work in an NVIDIA environment. However, the Windows environment has not been verified.
$ git clone https://github.com/robustonian/Qwen3-VL-Embedding-Search
$ cd Qwen3-VL-Embedding-Search
$ uv sync
$ uv run hf download Qwen/Qwen3-VL-Embedding-2B --local-dir ./models/Qwen3-VL-Embedding-2B # Download the model
Set the environment variables.
$ cp .env.example .env
Edit the .env file as needed.
# Backend API Server
API_HOST=0.0.0.0
API_PORT=8000
MODEL_PATH=./models/Qwen3-VL-Embedding-2B
# App config
QWEN_SEARCH_EMBEDDING_API_URL=http://localhost:8000/v1/embeddings
# Frontend Dev Server
VITE_API_PORT=8000
Start the API server.
$ bash serve.sh
Actually, the command above starts the API server and makes the frontend accessible simultaneously.
Loading the model takes some time, but once the string below is displayed in the terminal on the API server side, it is ready:
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
You can open the GUI by accessing http://[Server IP Address]:8000 in your web browser.
GUI Screen Explanation
Home Screen (Search)
When you open the top page, you will see a search screen like the one below.

The main features are as follows:
Switching Between Text Search / Image Search

You can switch between text search and image search using the toggle above the search bar. In text search, you enter a query in natural language to find semantically related images or documents. In image search, you search for images or documents similar to the uploaded image.
File Type Filter
You can select the search target from "Text", "Image", and "PDF". Multiple selections are allowed. If you select PDF, the images extracted from the uploaded PDF will be the search target.
Clipboard Search

If you press Ctrl+V (or Cmd+V on Mac) on the image search screen, a modal will open that allows you to search using an image from your clipboard. This is convenient when you want to take a screenshot and immediately search for similar images.
:::alert
Although the UX is a bit lacking, you must click first and then press Ctrl+V again to attach the image. Apparently, this is a specification required for security reasons when using http access.
:::
Search Results

Search results are displayed in a grid format, and each result shows a similarity score. Clicking on a result opens a preview modal to view more details.
Library Screen (File Management)
Clicking "Library" in the sidebar moves you to the file management screen.

Drag & Drop Upload
By dragging and dropping files into the upload area at the top of the screen, you can upload multiple files at once. Supported formats include images (JPEG, PNG, GIF, WebP), PDFs, and text files (TXT, Markdown).
Clipboard Upload
Pressing Ctrl+V on the library screen opens a modal to upload an image from the clipboard.
Automatic PDF Page Splitting
When you upload a PDF, each page is automatically extracted as an image. This allows you to find specific pages of a PDF via image search.
File List
Uploaded files are displayed in a list. You can also select multiple files to delete them in bulk.
Collection Screen
Clicking "Collection" in the sidebar moves you to the collection management screen.

Collections are a feature for grouping files. You can organize files by project or category and filter by collection during searches.
What is the use of this?
By the way, what is the use of this system?
Local Multimodal Search
First, you can build a multimodal search system that is completed in a local environment. Since you do not need to upload files to cloud services, you can securely search through highly confidential documents and images.
Finding Documents via Text
Standard searches for finding documents from text are also possible.
Finding Similar Images via Image
This is useful in situations where you want to "find images similar to this one." You can use it for collecting design references or detecting duplicate images.
Searching Inside PDFs
Since PDFs are imaged page by page and made searchable, you can perform searches like "Which slide had that graph on it?"
Conclusion
In this article, I introduced a multimodal local AI search system based on Qwen3-VL-Embedding and summarized the installation method and usage.
I am grateful that I can now perform local image searches with relatively high accuracy.
Since it can also be used as an API, it has good affinity with image search RAG and AI agents. I hope you will make good use of it.
Finally, I would like to thank the Qwen team again for releasing such a wonderful model!
Discussion