Apache-2.0 · v0.7.3 · runs on your machine
WARM
Hybrid search, graph indexing, and vector-symbolic memory.
Search and memory that run entirely on your machine.
WARM is a local-first document search engine and a vector-symbolic associative memory in one store. Hybrid BM25 and exact-cosine retrieval, byte-offset hits, crash-safe persistence, and superposed memory you can bind, bundle and query. Embed the engine or connect portable clients to your own HTTP server. The engine sends no telemetry.
- Rust
- Python
- JavaScript
- Embedded Node
What are you building?
Choose a path, run an example, then inspect the evidence it returns.
Memory for an editor
Connect an MCP host to a local store. Remember, recall and inspect memories across sessions.
Search inside an app
Choose Rust, Node or a Python HTTP client, with clear package and storage boundaries.
Evaluate your results
Check known answers, inspect source passages and compare retrieval on your own questions.
Already installing? Troubleshoot setup and retrieval.
Install, ingest, search
The code below is read from the quickstart examples that CI runs on every pull request.
cargo add warm-rust --features security
// 1. Ingest. A store is a directory (`None` would use the current directory); it persists
// there and reopens with the same arguments.
let store_dir = tempfile::tempdir()?;
let warm = WarmCore::new(
DIMENSIONS,
Some(store_dir.path().display().to_string()),
None,
)?;
let start = Instant::now();
let inputs: Vec<DocumentInput> = corpus.iter().map(to_input).collect();
warm.memorize_documents(inputs)?;
println!(
"ingested {} documents in {:.1?}",
corpus.len(),
start.elapsed()
);
// Hits carry the passage and its byte range in the source text.
let hit = &warm.search_documents("asylum from persecution", &SearchOptions::default())?[0];
println!(
"\n{} bytes {}..{} score {:.3}: {}",
hit.document_id,
hit.start_byte,
hit.end_byte,
hit.score,
hit.text.as_deref().unwrap_or("")
);
The engine itself. Every other runtime is a surface over it.
uv venv && uv pip install warm-sdk
# 1. Ingest. The server keeps one store per tenant; remember_many stores the facts atomically.
client = WarmClient(url=URL, api_key=API_KEY, tenant_id=tenant)
started = time.perf_counter()
client.memory.remember_many(
[{"id": d["id"], "text": d["text"], "metadata": {"title": d["title"]}} for d in corpus]
)
print(f"ingested {len(corpus)} documents in {(time.perf_counter() - started) * 1000:.1f} ms")
# Hits carry the stored text, metadata and the retrieval score.
top = client.memory.recall("asylum from persecution", k=1)[0]
print(f"\n{top.id} score {top.score:.3f}: {top.text}")
An HTTP client for warm-server. The warm-python wheel (writerslogic_warm.Warm) runs document search and the memory API in-process.
npm ci --prefix bindings/js/warm-sdk
npm run build --prefix bindings/js/warm-sdk
import { randomUUID } from 'node:crypto'
import { WarmClient } from '../../../bindings/js/warm-sdk/dist/index.js'
const runId = randomUUID()
const warm = new WarmClient({
url: process.env.WARM_URL ?? 'http://127.0.0.1:8080',
apiKey: process.env.WARM_API_KEY,
tenantId: process.env.WARM_TENANT_ID ?? `js-quickstart-${runId}`,
})
const saved = await warm.memory.remember('Restore deleted documents from verified backups.', {
id: `backups-${runId}`, metadata: { quickstart: runId },
})
const hits = await warm.memory.recall('restore backups', {
k: 1, filter: { quickstart: runId },
})
console.log(hits[0]?.text)
Portable warm-sdk 0.2.2 HTTP client. Run warm-server separately and set WARM_URL and WARM_API_KEY. No native or runtime dependencies. The relative import above is for this checkout.
npm ci --omit=optional
npm run build
// 1. Ingest. A store is a directory; it persists there and reopens with the same arguments.
const memory = new DocumentMemory(new WarmMemorySystem(4096, mkdtempSync(join(tmpdir(), 'warm-quickstart-'))))
const started = performance.now()
await memory.ingest(corpus.map(toInput))
console.log(`ingested ${corpus.length} documents in ${(performance.now() - started).toFixed(1)} ms`)
// Hits carry the passage and its byte range in the source text.
const [hit] = await memory.search('asylum from persecution')
console.log(`\n${hit.documentId} bytes ${hit.startByte}..${hit.endByte} score ${hit.score.toFixed(3)}: ${hit.text}`)
Optional writerslogic-warm 0.7.0 engine. Source builds require Rust; native npm releases select one of eight platform binaries.
Measured, and traceable
Both results are read from committed files under benchmarks/results/ each time the site is built.
BEIR SciFact test split, 300 queries over 5,183 documents, MiniLM-L6-v2 embeddings (384 dimensions). The published BM25 figure (0.665, Thakur et al. 2021) is quoted from the BEIR paper, not re-run here.
Source: benchmarks/results/public_scifact.json · Apple M4 · benchmark page
- At recall@10 of 0.90: the fastest WARM configuration (WARM VGraph (8-bit codes, rerank)) ran at 4,409 QPS, slower than the fastest other system (SymphonyQG (qb=0), 5,913 QPS).
- Not reached at 0.90 by: SymphonyQG (qb=4).
- At recall@10 of 0.95: no WARM configuration reached it. Reached by: FAISS HNSW M=16, FAISS HNSW M=32, Lucene HNSW M=16, Lucene HNSW M=32, RaBitQ IVF 1+8, hnswlib M=16.
- † WARM VGraph (4-bit codes, rerank): opt-in encoding that ran at lower machine load than the other rows; the benchmark page treats it as unconfirmed.
Source: benchmarks/results/public_qgraph_nytimes-256-angular.json · Apple M4 · load gate met by 0 of 107 configurations (limit 3.0), so throughput is indicative · benchmark page
One engine, two layers
Document search is a conventional hybrid retriever. The vector-symbolic layer is the associative memory. Both sit on one crash-safe store. Module map →
Why holographic
A hologram stores the whole picture in every fragment. A hypervector memory does the same: many facts are superposed into one long vector, no single bit holds any one fact, and damage is spread thinly over all of them.
- Bind a key to a value with XOR. The result looks like neither, and binding again with the key gives the value back.
- Bundle many bound pairs by majority vote into one vector that stays a little similar to each of them.
- Resonate: unbind with a key and compare against known values. The right one stands out from the noise, even after you corrupt the memory.
The demo uses dense binary vectors so the algebra is easy to see. The engine uses sparse binary vectors, and its document search does not rank with hypervectors; the concepts page says exactly which parts do.
A memory in one vector
4,096 bits hold every key-value pair at once. Pick how many pairs, damage the memory, and ask for one value back.
Similarity of the unbound memory to each known value
What is being computed
Each key and each value is a random 4,096-bit vector. A pair is key XOR value. The memory is the bitwise majority of all pairs, then damage flips the chosen share of its bits. To ask, XOR the memory with a key and measure the fraction of matching bits against every value. Unrelated vectors match about half their bits, with a spread near 0.8 percentage points, so a match well above 0.5 is the stored value. More pairs shrink the signal; more damage shrinks it too. Past some point the answer is wrong, and the demo says so.
Retrieval quality on SciFact
| System | nDCG@10 | Recall@100 |
|---|---|---|
| WARM hybrid (BM25 + exact cosine) | 0.729 | 0.953 |
| WARM lexical (stemmed BM25) | 0.688 | 0.925 |
| WARM dense (exact cosine) | 0.645 | 0.925 |
| NumPy exact cosine, same embeddings | 0.645 | 0.925 |
| WARM sparse vector path | 0.470 | 0.779 |
Same embeddings for every dense row. The benchmark pages carry the full comparison, including where WARM loses. Source: benchmarks/results/public_scifact.json.
What is in the box
Hybrid search
Stemmed BM25 fused with exact cosine over embeddings you supply. Hits carry the passage and its byte range.
Vector-symbolic memory
Sparse binary hypervectors with bind, bundle and permute, a triple store with multi-hop queries, Hopfield cleanup and a resonator network.
Crash-safe storage
Atomic batches, a mmap segmented log with generations, and replay. A store is a directory.
Hardening you opt into
AES-256-GCM stores, signed audit logs, credential-gated agents and COSE/SCITT provenance behind Cargo features.
Local by construction
The engine makes no network calls and sends no telemetry. The optional HTTP server is yours to run.
Measured, including losses
Every number on this site traces to a committed results file, and the benchmark pages say where another system wins.
What WARM is¶
WARM (WritersLogic Adaptive Retention & Memory) is a Rust engine for local agent and application memory. It provides stemmed BM25 and exact-cosine hybrid document search, a graph vector index, a memory API (remember, recall, forget, explain) and a vector-symbolic fact store. A store is a directory on your machine; the library makes no network calls.
Use it when you want documents or agent memory searchable inside your own process, over HTTP or from an MCP client, with storage you control. Look elsewhere if you need a distributed, multi-writer service: a store has one writer, and warm-server is a single node.
Document search is conventional hybrid retrieval. The holographic part is the vector-symbolic layer; concepts says which is which. Every number on this site traces to a committed file under benchmarks/results/, and the benchmarks page lists where WARM loses.
| I want to | Go to |
|---|---|
| Install and run a first query | Quickstart |
| Understand the model | Concepts |
| Look up an API or feature flag | API overview |
| Connect a framework, editor or language | Integrations |
| Run the HTTP service | Server |
| Read or verify a store on disk | File format |
| Check performance claims | Benchmarks |
| Check security and stability promises | Security |
| Common questions | FAQ |
| Release notes | Changelog |