The Zain Alhassani Algorithm: A Disk-First Memory Architecture for Semantic Search on Low-RAM Hardware

AI assistants that learn continuously store each fact as a high-dimensional vector and retrieve facts by semantic similarity. The common design keeps every vector in main memory, so memory use grows with knowledge and quickly exceeds small servers. The Zain Alhassani Algorithm is a disk-first memory architecture: all facts and vectors stay on disk, and main memory holds only a compact map of cluster centres and storage offsets. A query consults the map, reads only the nearest clusters from disk, scores them with 8-bit vectors and re-ranks the best candidates exactly. New facts are searchable immediately. In a test with 60,000 facts it reduced search memory from 467 MB to 82 MB and search time from up to 30 ms to about 2 ms, returning the same best result as exact search in 96–100% of queries. It runs in production as the memory of Ziko Brain on the Jarvice AI platform.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-26
DOI
https://doi.org/10.5281/zenodo.23662046
Primary Topic
Information Retrieval and Search Behavior
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

The Zain Alhassani Algorithm: A Disk-First Memory Architecture for Semantic Search on Low-RAM Hardware

zain zain alhassani
Zenodo (CERN European Organization for Nuclear Research)
Information Retrieval and Search Behavior
preprint

The Zain Alhassani Algorithm: A Disk-First Memory Architecture for Semantic Search on Low-RAM Hardware

zain zain alhassani
preprint en

Abstract

AI assistants that learn continuously store each fact as a high-dimensional vector and retrieve facts by semantic similarity. The common design keeps every vector in main memory, so memory use grows with knowledge and quickly exceeds small servers. The Zain Alhassani Algorithm is a disk-first memory architecture: all facts and vectors stay on disk, and main memory holds only a compact map of cluster centres and storage offsets. A query consults the map, reads only the nearest clusters from disk, scores them with 8-bit vectors and re-ranks the best candidates exactly. New facts are searchable immediately. In a test with 60,000 facts it reduced search memory from 467 MB to 82 MB and search time from up to 30 ms to about 2 ms, returning the same best result as exact search in 96–100% of queries. It runs in production as the memory of Ziko Brain on the Jarvice AI platform.

Zenodo (CERN European Organization for Nuclear Research)
Digital Science (United States) (US)
Information Retrieval and Search Behavior
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
The Zain Alhassani Algorithm: A Disk-First Memory Architecture for Semantic Search on Low-RAM Hardware — zain zain alhassani · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS