Needle & NeedleDB

A generative-AI-powered multimodal database that answers complex natural-language image queries, with up to 3× higher mAP than CLIP.

Text-to-image search engines built on joint embedding models such as CLIP handle short, simple queries well. They miss once a query becomes long, compositional or full of detail. Needle reverses the usual direction of retrieval: it uses a generative model to imagine what the answer should look like, then searches the image collection with those generated “guide images”.

Highlights

  • Up to 3× higher mean average precision than OpenAI’s CLIP on complex natural-language queries.
  • Combines several vision foundation models, weighting them per query, and plugs into a vector-database index.
  • NeedleDB turns the approach into a full system for accurate and efficient image retrieval at database scale.
  • Released as an open research artifact with code, models and an interactive demo.

Publications

  • Needle: A Generative-AI-Powered Multimodal Database for Answering Complex Natural Language Queries. Preprint (arXiv:2412.00639).
  • NeedleDB: A Generative-AI-Based System for Accurate and Efficient Image Retrieval using Complex Natural Language Queries. Preprint, 2026.

Part of my Ph.D. thesis, Generative AI for Multimodal Data Management, advised by Dr. Abolfazl Asudeh at UIC’s InDeXLab.