TRACE — local-first binary vector search SDK (wraps the trace_core engine)
Project description
aioniq-trace
Local-first binary vector search. TRACE compresses dense embeddings into compact binary signatures (~32× smaller) and searches them with vectorized XOR + popcount Hamming distance on the CPU — linear, streaming-append, no GPU, no network. Your data never leaves the machine.
Install as
aioniq-trace, import asvector_trace.
Install
pip install aioniq-trace # core
pip install "aioniq-trace[text]" # + sentence-transformers text embeddings
pip install "aioniq-trace[visual]" # + CLIP image / text embeddings
pip install "aioniq-trace[mcp]" # + Model Context Protocol server for agents
Quickstart
import time, vector_trace
with vector_trace.TraceIndex("~/my_index", families=["text_dated"]) as idx:
idx.ingest("Met Dana at the harbor.", family="text_dated", timestamp=time.time())
for r in idx.search("foggy day by the water", family="text_dated"):
print(r.rank, round(r.confidence, 3), r.preview)
From the CLI:
trace index create -d ~/.trace/idx -f text_dated
trace index ingest "the harbor was foggy" -F text_dated -d ~/.trace/idx
trace index search "misty docks" -F text_dated -d ~/.trace/idx
trace mcp # run the MCP server (stdio) for AI agents
Features
- Compact & fast — sign-bit quantization (~32× smaller) + vectorized Hamming search on CPU.
- Local-first — on-disk indexes; no cloud, no telemetry.
- Multiple families — text, visual (CLIP), and persona embeddings, plus bring-your-own vectors.
- Cross-modal timeline — one time axis across families;
recall_at_time()for "what was happening around then". - Agent-ready — Python API, a
traceCLI, and an MCP server exposing 7 tools.
Documentation
Guides — getting started, concepts, Python API, CLI, MCP, configuration — are in the repository: https://github.com/CalBearKen/TRACE
License
Apache-2.0 — see LICENSE. A separately-licensed commercial edition adds a hardware-accelerated engine.
Copyright © 2026 Aioniq.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioniq_trace-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aioniq_trace-0.1.1-py3-none-any.whl
- Upload date:
- Size: 91.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8160e729df41ed3d08fc6571d7f9dc49d4f3fa51c6fd1923cf1d3a8d0ab6a03
|
|
| MD5 |
7202529edde3166ef383c86dde77640b
|
|
| BLAKE2b-256 |
b53f7b46921a0aad1c8f66569507fb5ba996e1d6e41f0ddd7c3ad67fa881e165
|