Metadata-Version: 2.4
Name: vectoramp-sable-embedded-runtime
Version: 0.1.2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
License-File: LICENSE
Summary: Native SABLE runtime for VectorAmp SDK development and tests
Author: VectorAmp, Inc.
License-Expression: LicenseRef-VectorAmp-Embedded-Development-1.0
Requires-Python: >=3.9, <3.14
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.vectoramp.com/guides/embedded-sable-local-vector-database
Project-URL: Homepage, https://vectoramp.com

# VectorAmp SABLE Embedded Runtime for Python

The in-process SABLE runtime used by the VectorAmp Python SDK for local
development, evaluation, CI, automated tests, benchmarks, demos, and
non-production staging.

This runtime is an implementation dependency. Applications should use
`VectorAmp.embedded(...)` from the ordinary `vectoramp` SDK rather than depend
on the native binding API directly.
It runs the actual native SABLE engine and supports local persistence,
metadata filtering, and durable checkpoints.

This package is licensed for development and test use only. It may not serve
production or customer-facing workloads. Production applications must connect
the VectorAmp SDK to a separately licensed hosted or customer-operated SABLE
system. See `LICENSE` for the complete terms.

The package performs no network access and does not download an executable at
runtime. Creation, opening, search, insertion, and checkpoint operations release
the Python GIL. One process may own a dataset at a time; IDs are insert-only
in this bounded edition. The first release qualifies CPython 3.9 through 3.13.

```python
from vectoramp_sable import SableDataset, SableFilter

db = SableDataset.create(
    "/tmp/demo.sable",
    8,
    metadata_schema={"tenant": "string", "year": "i32"},
)
db.insert([42], [[0.0] * 8], [{"tenant": "acme", "year": "2026"}])
db.checkpoint()
db.optimize()  # optional before the automatic 10,000-vector threshold
db.export_jsonl("/tmp/demo.jsonl")

f = SableFilter()
f.eq("tenant", "acme")
f.range_i32("year", 2020, 2030)
print(db.search([0.0] * 8, 10, f))
```

`export_jsonl()` writes a versioned, checksummed logical export containing exact
vectors and metadata for migration into a clustered SABLE deployment. It
releases the GIL, creates the destination atomically, and never overwrites an
existing file.

