Skip to content

API Reference

Persisting's APIs share a common core β€” TTAS addressing, Lance storage, Pulsing distribution.

Module Use for Status
Tensor Memory persisting.open() β€” unified storage for parameters, KV cache, trajectories πŸ§ͺ Experimental
Queue persisting.Queue β€” event streaming, KV interface, samplers βœ… Stable
Search persisting.search β€” document indexing and retrieval βœ… Stable
Tensor Address Space persisting.core β€” direct access to Dimension, Region, canonicalization πŸ§ͺ Experimental

Unified Tensor Storage

persisting.open(namespace, dims, ...) β†’ TensorNamespace
kv[key]                              β†’ Handler
h.tensor()                           β†’ ndarray
h.put(data)                          β†’ None

One interface for all three workloads:

Namespace Dims Use
params/llama-70b (param_id, shard) Model weights
kvcache/v1 (session, layer, head, time) KV cache
trajectories/v1 (planned) (run_id, time) Trajectory tensor access

β†’ Tensor Memory API

Queue & Events

Queue(name, storage_path, ...)
q.put(record) / q.get(limit)
KVInterface(q).kv_put / kv_batch_get

β†’ Queue API

add_document(dataset, text)
query(dataset, query, mode, k)

β†’ Search API

TTAS Types

Dimension(name, kind)
TensorView(dims)[key] β†’ Region
canonicalize(region) / project_prefix(region, dims)

β†’ Tensor Address Space API