Local memory and search for AI agents and applications.
Website · Docs · Quickstart · Contribute
WARM (WritersLogic Adaptive Retention & Memory) is a Rust engine that stores text, vectors and facts
in a directory on your machine and finds them again. 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. Use it inside your application, over HTTP, or from an MCP client. The
library makes no network calls and sends no telemetry. Document search is conventional hybrid
retrieval; the holographic part is the vector-symbolic layer (concepts).
| You are using | Install |
|---|---|
| Rust | cargo add warm-rust (add --features security for encrypted stores) |
| Node, embedded engine | npm install warm-memory |
| JavaScript or TypeScript, HTTP client | npm install warm-sdk |
| Python, embedded engine | uv pip install warm-python |
| Python, HTTP client | uv pip install warm-sdk |
| HTTP server for the clients | cargo install --locked --features server,security --bin warm-server warm-rust |
| MCP client or editor | npx -y warm-mcp or uvx warm-mcp |
Rust 1.89 or newer builds the crate; local-models and --all-features need 1.94. Nothing is
enabled by default (default = []); the features are listed in the
API overview.
Rust. The crate is warm-rust; the library is imported as writerslogic_warm.
use writerslogic_warm::{DocumentInput, SearchOptions, WarmCore};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// A store is a directory; it persists there and reopens with the same arguments.
let dir = std::env::temp_dir().join(format!("warm-quickstart-{}", std::process::id()));
let warm = WarmCore::new(4096, Some(dir.display().to_string()), None)?;
warm.memorize_document(DocumentInput {
id: "backups".into(),
text: "Restore deleted documents from verified backups.".into(),
source_uri: Some("operations.md".into()),
version: Some("1".into()),
metadata: None,
chunk_words: None, overlap_words: None, store_text: None, embeddings: None, title_weight: None,
})?;
let hits = warm.search_documents("restore backups", &SearchOptions::default())?;
println!("{} {:?}", hits[0].document_id, hits[0].source_uri);
drop(warm);
std::fs::remove_dir_all(&dir)?;
Ok(())
}Node.js, embedded engine:
const { WarmMemorySystem } = require('warm-memory')
const { DocumentMemory } = require('warm-memory/semantic')
async function main() {
const dir = require('node:fs').mkdtempSync(require('node:path').join(require('node:os').tmpdir(), 'warm-readme-'))
const memory = new DocumentMemory(new WarmMemorySystem(4096, dir))
await memory.memorize({
id: 'backups', text: 'Restore deleted documents from verified backups.',
sourceUri: 'operations.md', version: '1', metadata: { project: 'alpha' },
})
const [hit] = await memory.search('restore backups', { filter: { project: 'alpha' } })
console.log(hit.documentId, hit.sourceUri, hit.text)
await memory.flush()
}
main().catch(error => { console.error(error); process.exit(1) })Python, against a running warm-server (WARM_API_KEY=change-me warm-server --input-dim 384):
from writerslogic_warm_sdk import WarmClient
client = WarmClient(url="http://127.0.0.1:8080", api_key="change-me", tenant_id="demo")
client.memory.remember_many([{"id": "backups", "text": "Restore deleted documents from verified backups."}])
print(client.memory.recall("restore backups", k=3))The quickstart covers the JavaScript client, MCP and facts that change over
time. Runnable versions with a SQLite FTS5 comparison are in
examples/quickstart.
Results are generated by ./benchmarks/competitive/warm-bench table from the committed files in
benchmarks/results/competitive/ into
docs/benchmarks/COMPARISON.md, with every cell indexed to its
source file in comparison.cells.json. Rows are never
compared across hardware classes, and a win or loss needs a bootstrap interval that excludes
parity. Two single-machine examples from that table (SIFT-1M, 8-core Ice Lake x86_64 VM, recall@10 at
least 0.95): WARM 14,645 QPS against hnswlib 7,427, and p99 96 microseconds against 194. The same
table records where WARM is behind, for example index size on GloVe-100 and text build memory against
SQLite FTS5. See benchmarks for the protocol and the losses.
| Surface | Package or path |
|---|---|
| Rust | warm-rust |
| Embedded Node | warm-memory |
| JavaScript and TypeScript client | warm-sdk (npm), bindings/js/warm-sdk |
| Python client | warm-sdk (PyPI), bindings/python/warm-sdk |
| Python native | warm-python |
| MCP server | warm-mcp (npm and PyPI), integrations/mcp |
| Python frameworks | LangChain, LangGraph, LlamaIndex, Haystack, DSPy, OpenAI Agents, Pydantic AI, smolagents, LiteLLM, CrewAI, AutoGen, Semantic Kernel, mem0, Letta (integrations/python) |
| JavaScript frameworks | LangChain.js, LlamaIndex.TS, Mastra, OpenAI Agents JS, Vercel AI SDK (integrations/js) |
| C, Go, Java, .NET, Swift, Kotlin, WebAssembly | bindings/ (source builds) |
| Importers | warm-import for Chroma, Qdrant, Pinecone, pgvector, FAISS and others |
Details and tested versions: integrations.
Quickstart · Concepts · API overview · Integrations · Server · File format · Benchmarks · Security and stability · FAQ · Changelog
- One writer per store; a second writing process fails at open with a lock error.
- Sketches and term counts are not encryption, and
storeText: falseis not a privacy control (security). - Capacity numbers are sweeps over a tested range, not guarantees.
- Benchmarks are single machines; conditions are in each results file.
Report vulnerabilities privately through SECURITY.md.
CONTRIBUTING.md covers setup, the checks CI runs and DCO sign-off
(git commit -s, no CLA). See the Code of Conduct.
Apache-2.0. See LICENSE. Use, modify and embed it in open-source or proprietary software, including network services, with no copyleft obligation. The historical v0.6.1 source remains available under its AGPL-3.0-or-later license.
