Skip to main content

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 as vector_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 trace CLI, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioniq_trace-0.1.1-py3-none-any.whl (91.9 kB view details)

Uploaded Python 3

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

Hashes for aioniq_trace-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8160e729df41ed3d08fc6571d7f9dc49d4f3fa51c6fd1923cf1d3a8d0ab6a03
MD5 7202529edde3166ef383c86dde77640b
BLAKE2b-256 b53f7b46921a0aad1c8f66569507fb5ba996e1d6e41f0ddd7c3ad67fa881e165

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page