Skip to main content

Rust-backed mmapped index and vector search for ultrasync

Project description

ultrasync-index

Rust-backed mmapped index and vector search for ultrasync.

This package provides the low-level index primitives:

  • GlobalIndex - memory-mapped file index with zero-copy access
  • ThreadIndex - in-memory vector index for fast similarity search
  • TreeSitter scanner - AST-based symbol extraction (optional)
  • Candle embeddings - Rust-native embeddings via HuggingFace (optional)

Installation

pip install ultrasync-index

Or as part of the full ultrasync package:

pip install ultrasync

Usage

from ultrasync_index import GlobalIndex, ThreadIndex

# Memory-mapped global index
index = GlobalIndex("index.dat", "blob.dat")
data = index.slice_for_key(key_hash)

# In-memory thread-local index
thread_idx = ThreadIndex()
thread_idx.add(key_hash, embedding_vector)
results = thread_idx.search(query_vector, top_k=10)

Features

  • scanner - Tree-sitter based symbol extraction (enabled by default)
  • embeddings - Candle-based Rust-native embeddings (enabled by default)
  • mkl - Intel MKL acceleration for embeddings
  • cuda - CUDA acceleration for embeddings

License

MIT

Project details


Download files

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

Source Distribution

ultrasync_index-0.1.0.tar.gz (37.1 kB view details)

Uploaded Source

Built Distributions

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

ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.9Windows x86-64

ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file ultrasync_index-0.1.0.tar.gz.

File metadata

  • Download URL: ultrasync_index-0.1.0.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ultrasync_index-0.1.0.tar.gz
Algorithm Hash digest
SHA256 680b2d78a652b36078da3ff4a73ec6de1b0f71d508de644f70356f944783061c
MD5 b0d4e529025e240cae699cfd98c4c52d
BLAKE2b-256 a433786e3ad7ecb25e1233102484d991601e83879ec3b908969c0d6572e3345c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultrasync_index-0.1.0.tar.gz:

Publisher: publish.yml on darvid/ultrasync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 996eb87d07d7a60b2c3d164e9ec26b9f5b3164852f89ef60e59e26d99a56daca
MD5 4843cbb7889b5c4b7936d09f4edcfbbe
BLAKE2b-256 aa2094db84ce4791f728dfb739de2f85fd4686bc42100ce21f83eccd2e618e8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish.yml on darvid/ultrasync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d7c81830c571b9829eab60667bf49a7f4638250426419a71acbe0de048f33020
MD5 feb7af18f7906c2c739538f5204c7c9e
BLAKE2b-256 c52d719cdbacb8c246d9ba6fd84f41244533202ae15f182bb3fc5a8b56dc9b96

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl:

Publisher: publish.yml on darvid/ultrasync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14d46d709cbfa66ac15f5ea814be56feb3c6b8b4f9cfdf20478f6c85195debda
MD5 7836fcfae9d06aee2e86cde99a112663
BLAKE2b-256 a7cbdf85a97399d44fd666f615834d55aa0a9e60eb2416b7f25fbf238da6b546

See more details on using hashes here.

Provenance

The following attestation bundles were made for ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on darvid/ultrasync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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