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 embeddingscuda- CUDA acceleration for embeddings
License
MIT
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 Distribution
Built Distributions
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
680b2d78a652b36078da3ff4a73ec6de1b0f71d508de644f70356f944783061c
|
|
| MD5 |
b0d4e529025e240cae699cfd98c4c52d
|
|
| BLAKE2b-256 |
a433786e3ad7ecb25e1233102484d991601e83879ec3b908969c0d6572e3345c
|
Provenance
The following attestation bundles were made for ultrasync_index-0.1.0.tar.gz:
Publisher:
publish.yml on darvid/ultrasync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultrasync_index-0.1.0.tar.gz -
Subject digest:
680b2d78a652b36078da3ff4a73ec6de1b0f71d508de644f70356f944783061c - Sigstore transparency entry: 786334660
- Sigstore integration time:
-
Permalink:
darvid/ultrasync@6332a554265987abad946e27751744eb2a6801e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darvid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6332a554265987abad946e27751744eb2a6801e8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
996eb87d07d7a60b2c3d164e9ec26b9f5b3164852f89ef60e59e26d99a56daca
|
|
| MD5 |
4843cbb7889b5c4b7936d09f4edcfbbe
|
|
| BLAKE2b-256 |
aa2094db84ce4791f728dfb739de2f85fd4686bc42100ce21f83eccd2e618e8f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultrasync_index-0.1.0-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
996eb87d07d7a60b2c3d164e9ec26b9f5b3164852f89ef60e59e26d99a56daca - Sigstore transparency entry: 786334673
- Sigstore integration time:
-
Permalink:
darvid/ultrasync@6332a554265987abad946e27751744eb2a6801e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darvid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6332a554265987abad946e27751744eb2a6801e8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c81830c571b9829eab60667bf49a7f4638250426419a71acbe0de048f33020
|
|
| MD5 |
feb7af18f7906c2c739538f5204c7c9e
|
|
| BLAKE2b-256 |
c52d719cdbacb8c246d9ba6fd84f41244533202ae15f182bb3fc5a8b56dc9b96
|
Provenance
The following attestation bundles were made for ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl:
Publisher:
publish.yml on darvid/ultrasync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultrasync_index-0.1.0-cp39-cp39-win_amd64.whl -
Subject digest:
d7c81830c571b9829eab60667bf49a7f4638250426419a71acbe0de048f33020 - Sigstore transparency entry: 786334698
- Sigstore integration time:
-
Permalink:
darvid/ultrasync@6332a554265987abad946e27751744eb2a6801e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darvid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6332a554265987abad946e27751744eb2a6801e8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d46d709cbfa66ac15f5ea814be56feb3c6b8b4f9cfdf20478f6c85195debda
|
|
| MD5 |
7836fcfae9d06aee2e86cde99a112663
|
|
| BLAKE2b-256 |
a7cbdf85a97399d44fd666f615834d55aa0a9e60eb2416b7f25fbf238da6b546
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultrasync_index-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
14d46d709cbfa66ac15f5ea814be56feb3c6b8b4f9cfdf20478f6c85195debda - Sigstore transparency entry: 786334720
- Sigstore integration time:
-
Permalink:
darvid/ultrasync@6332a554265987abad946e27751744eb2a6801e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darvid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6332a554265987abad946e27751744eb2a6801e8 -
Trigger Event:
workflow_dispatch
-
Statement type: