Memory & RAG
~9 min readUpdated: November 2026

Tencent OmniEVIE-4B: #1 Multimodal Retrieval & ST-HAC CPU Index

Tencent OmniEVIE-4B ST-HAC Multi-Vector Multimodal Retrieval Architecture

OmniEVIE-4B (`tencent/OmniEVIE-4B`) is a 4.54B-parameter unified multi-modal, multi-vector retrieval model built on Qwen3.5-4B with bidirectional full attention, Prefix-MRL projection, and ST-HAC int8 clustering. Ranking #1 among non-audio models on MMEB-V2 (60.68 Full / 60.06 Compressed), it indexes 1 million records in 8.82 GiB and searches in 54.2 ms on one CPU thread.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Tencent OmniEVIE-4B: #1 Multimodal Retrieval & ST-HAC CPU Index: OmniEVIE-4B (`tencent/OmniEVIE-4B`) is a 4.54B-parameter unified multi-modal, multi-vector retrieval model built on Qwen3.5-4B with bidirectional full attention, Prefix-MRL projection, and ST-HAC int8 clustering. Ranking #1 among non-audio models on MMEB-V2 (60.68 Full / 60.06 Compressed), it indexes 1 million records in 8.82 GiB and searches in 54.2 ms on one CPU thread. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Exampleomnievie-4b-rag-agent.ts
omnievie-4b-rag-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const multimodalRagAgent = createAgent({
agentId: 'omnievie-4b-evidence-retriever',
provider: 'anthropic',
model: 'claude-sonnet-4-20250514',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
mcpServers: {
omnievie: {
command: 'python3',
args: ['-m', 'omnievie.mcp_server', '--model', 'tencent/OmniEVIE-4B', '--index', './data/mm_index.sthac'],
},
},
});
async function locateVisualEvidence() {
const result = await multimodalRagAgent.run(
'Query the OmniEVIE-4B index for Q3 thermal dissipation tables across PDF schematics and lab videos, returning exact page bboxes and timestamps.'
);
console.log('Grounded Evidence:', result.summary);
}
locateVisualEvidence().catch(console.error);
Video Guides

Watch: Related Video Guides

WeVisOne VL-4B : This Tiny 4B AI Model Has Powerful Vision

Youtu-VL-4B-Instruct : This 4B AI Model Can SEE & THINK ๐Ÿคฏ

What Is OmniEVIE-4B? Bidirectional Qwen3.5 + ST-HAC Architecture

OmniEVIE-4B is a 4.54B-parameter multi-vector embedding backbone (OmniEVIEBackbone, Apache-2.0) developed by Tencent IMA Product Center and Tencent Youtu Lab. Derived from Qwen/Qwen3.5-4B (is_causal=false, 32 hybrid linear/full-attention layers, 24-layer vision encoder), it projects tokens through a single Prefix-MRL head supporting elastic truncation across {64, 128, 256, 512, 1024, 2048} dimensions.

To eliminate ColBERT-style storage bloat, OmniEVIE-4B applies Spatio-Temporal Hierarchical Agglomerative Ward Clustering (ST-HAC), sphere-renormalized centroids, and fixed-scale int8 quantization alongside a learned query_gate.safetensors saliency gate (tau=0.6, noise-floor margin theta=0.38).

MMEB-V2 Leaderboard, ViDoRe V3 & CPU Latency Benchmarks

OmniEVIE-4B ranks #1 among all non-audio models across 190 tasks on the TIGER-Lab MMEB-Leaderboard (surpassing 9.4B baselines) while slashing vector memory to a fraction of full-sequence indexes.

Retrieval ConfigurationMMEB OverallVisual DocTextAgent TrackIndex Size / 1M1M Search Latency (1 CPU Thread)
OmniEVIE-4B (Full 2048D)60.68 (#1)84.70 (#1)52.97 (#1)54.14 (#1)UncompressedGPU MaxSim
OmniEVIE-4B (`K128 x d64 int8`)60.06 (#2)~84~52~548.82 GiB54.2 ms (14.6 + 19.7 + 19.9 ms)
OmniEVIE-4B (`K32 x d64 int8`)High Recallโ€”โ€”โ€”2.15 GiBSub-30 ms (5M @ 120.2 ms at K128)

On QVHighlights validation (1,083 queries over 150-second clips), direct retrieval from the compressed multi-vector index achieves 78.0% peak-in-segment hit rate and 94.3% span intersection without running external OCR or video captioners.

Installing OmniEVIE-4B with FlashAttention-2 & Sentence Transformers

OmniEVIE-4B runs either via the dedicated omnievie package (required for ST-HAC K128ร—d64 int8 compression and three-stage CPU indexing) or natively via sentence-transformers MultiVectorEncoder.

bash
# Install official OmniEVIE runtime (requires torch 2.7.1+, flash-attn>=2.7.0)
pip install git+https://github.com/Tencent/OmniEVIE.git
python
from omnievie import OmniEVIE, QueryGate, ThreeStageIndex

model = OmniEVIE.from_pretrained("tencent/OmniEVIE-4B", device="cuda")
gate = QueryGate.from_pretrained("tencent/OmniEVIE-4B", device="cuda")

# Encode visual document pages or video into <=128 x 64D int8 clusters
doc_records = model.encode_documents(pages, k_clusters=128, dim=64, quantize="int8")
index = ThreeStageIndex.build(doc_records)

# Retrieve in ~54ms on 1 CPU thread with bounding-box localization
q_vecs, q_weights = gate.encode_query(model, "Find thermal limit in Table 4")
hits = index.search(q_vecs, q_weights, top_k=5)

Input Constraints in OmniEVIE Chat Template

OmniEVIE accepts strictly one image or one video per input record, and visual documents are indexed without mixing raw document text (`encode_query` handles multimodal text+image queries).

Grounded Visual & GUI Agent Memory in Smoke Monkey

With an Agent Track score of 54.14 (#1 overall), OmniEVIE-4B is built to index agent tool logs, browser screenshots, engineering PDFs, and screen recordings inside one unified store. Smoke Monkey agents query the 8.82 GiB CPU index over MCP and jump straight to the exact PDF bounding box or video timestamp containing the answer.

Google Search Questions & Answers

Frequently Asked Questions

Q:How much RAM does a 1-million-document OmniEVIE-4B index need?

Using ST-HAC compression (`K128 x d64 int8`), each record uses at most 9,472 bytes, totaling 8.82 GiB per 1 million records (or 2.15 GiB using `K32 x d64 int8`).

Q:Does OmniEVIE-4B require a GPU at query time?

No. While document encoding uses CUDA with FlashAttention-2, the `ThreeStageIndex` searches 1 million records in 54.2 ms (and 5 million records in 120.2 ms) on a single CPU thread.

Q:Can OmniEVIE-4B locate regions inside PDFs or timestamps in videos?

Yes. Because ST-HAC retains spatio-temporal cluster coordinates, retrieval `argmax` directly returns page bounding boxes and video timestamp intervals without separate OCR.

Q:What license governs Tencent OmniEVIE-4B?

Both the `tencent/OmniEVIE-4B` weights and `Tencent/OmniEVIE` inference library are open-sourced under the Apache-2.0 license.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness