embedding_model); you can also set it explicitly with the keyword-only dimension parameter. Other optional parameters include metric ("euclidean" default, "cosine", or "squared_euclidean") and storage_precision. storage_precision picks the on-disk format for the rerank vectors: "float32" (default) or "float16" to halve the footprint at a slight precision cost, or one of the TurboQuant tiers "tq12" / "tq8" / "tq6" / "tq4" (12/8/6/4 bits per dimension) to trade storage for a small recall/latency cost — "tq4" is the most aggressive (~8x smaller than float32, ~94% recall@100 on a 768-dimensional benchmark dataset). All tiers work with every metric; the choice is fixed at create time.
Vector dimension is capped at 65535 (
0xFFFF). Passing dimension=0 still means auto-detect. Explicit values outside [0, 65535], including negatives, raise ValueError at create_index() time.To lift the free-tier 1M-items-per-index cap, pass an API key as the first argument (
cyborgdb.Client(api_key, storage_config=...)). Get a key from the CyborgDB Admin Dashboard. See Get an API Key.Automatic Embedding Generation
Enable automatic embedding generation for the encrypted index by settingembedding_model in create_index():
Python
API Reference
For more information on creating encrypted indexes, refer to the API reference:Python API Reference
API reference for
create_index() in Python