Cockpit UI Demo: Autonomous landmark analysis of the Roman Colosseum using multi-turn visual grounding, real-time web verification, and report synthesis.
Single-turn vision-language models and visual lookup tools evaluate inputs once without iterative verification. For dense imagery containing small typography, serial identifiers, fine architectural details, or defects, single-pass inspection frequently overlooks key visual evidence.
OmniSearch Agent addresses this with an iterative agentic architecture:
- Scene Ingest & Perception: Analyzes high-resolution input imagery to identify candidates for deeper inspection.
- Step-by-Step Reasoning: Maintains explicit reasoning traces (
<think>) across turns to plan targeted actions. - Visual Action Execution: Emits normalized bounding box targets (
<grounding>{"bbox_2d": ...}</grounding>) to crop and resample regions of interest via Lanczos interpolation. - Live Web Grounding: Emits targeted search requests (
<web_search>query</web_search>) to retrieve factual context from DuckDuckGo and Wikipedia. - Report Synthesis: Synthesizes verified findings into a structured report (
<answer>) backed by visual and external evidence.
flowchart TD
User["User Query + Image"] --> UI["Gradio Cockpit"]
UI --> Agent["OmniSearch Agent Loop"]
Agent --> LLM["Qwen2.5-VL / Mini-o3 (4-bit NF4)"]
LLM --> Decision{"Action Dispatch"}
Decision -->|"<grounding>"| CropTool["Visual Crop & Resample Tool"]
CropTool -->|"Observation Patch + Bounding Box"| Agent
Decision -->|"<web_search>"| WebTool["DuckDuckGo / Wiki Search Tool"]
WebTool -->|"Web Snippets & References"| Agent
Decision -->|"<answer>"| Output["Synthesized Findings Report"]
Output --> UI
Multi-turn high-resolution multimodal inference is optimized for single-GPU environments (e.g., NVIDIA RTX A4000 16GB):
- Quantization: 4-bit NormalFloat4 (NF4) via
bitsandbytes(bnb_4bit_use_double_quant=True,compute_dtype=bfloat16). - VRAM Allocation Profile:
- Base Model Weights: ~4.8 GB
- Image Tokens & Multi-Turn Cache: ~3.2 GB
- Gradio & System Buffers: ~0.6 GB
- Peak Allocation: ~8.6 GB / 16 GB (>7 GB operational headroom).
- Linux with NVIDIA GPU (e.g. RTX A4000, RTX 3080/3090/4080, T4, A10G)
- CUDA 12.x / 13.x
git clone https://github.com/tsyncIO/omnisearch-agent.git cd omnisearch-agent # Create virtual environment python3 -m venv --system-site-packages .venv source .venv/bin/activate # Install dependencies pip install -r requirements.txt
./run.sh 7860
Navigate to http://localhost:7860 in your browser.
omnisearch-agent/
├── app.py # Interactive Gradio cockpit dashboard
├── run.sh # Shell launch script
├── requirements.txt # Python dependencies
├── agent/
│ ├── __init__.py
│ ├── prompts.py # System prompts & multi-turn templates
│ └── visual_search_agent.py # Agent execution loop, streaming, and tool dispatch
├── tools/
│ ├── __init__.py
│ ├── visual_tools.py # Image cropping, Lanczos resampling, box annotation
│ └── web_tools.py # DuckDuckGo and Wikipedia retrieval integration
└── scripts/
└── record_demo.py # Headless recording automation script
- Hardware & PCB Inspection: Reading surface-mount markings and cross-referencing component datasheets.
- Document & Asset Auditing: Inspecting fine-print typography, serial tags, and external verification records.
- Object & Landmark Identification: Inspecting structural markers and retrieving live historical documentation.
- Auction & Provenance Verification: Inspecting dial hallmarks, maker signatures, and auction database records.
