Skip to main content

Evaluation Version of CyborgDB: The Confidential Vector Database

Project description

CyborgDB Lite

PyPI - Version PyPI - Python Version

CyborgDB Lite is an evaluation-only/non-commercial preview of CyborgDB, the first Confidential Vector Database. It enables you to ingest & search vectors emeddings in a privacy-preserving manner, without revealing the contents of the vectors themselves. CyborgDB works with existing DBs (e.g., Postgres, Redis) and enables you to add, query and retrieve vector embeddings with transparent end-to-end encryption.

💡 If you're looking for the REST Service version of CyborgDB, check out cyborgdb-service, or for the Client SDK cyborgdb.

Why Confidential?

Vector Search is at the heart of popular AI applications like RAG, recommendation systems, and semantic search. CyborgDB Lite leverages cryptographic hashing and symmetric encryption to enable Approximate Nearest-Neighbor (ANN) search over encrypted space, keeping your vector embeddings secure throughout their lifecycle.

Key Features

  • End-to-End Encryption: Vector embeddings remain encrypted throughout their lifecycle, including at search time
  • Zero-Trust Design: Novel architecture keeps confidential inference data secure
  • High Performance: GPU-accelerated indexing and retrieval with CUDA support
  • Familiar API: Easy integration with existing AI workflows
  • Multiple Backing Stores: Works with PostgreSQL, Redis, and in-memory storage
  • Cloud Ready: Supports AWS RDS, AWS ElastiCache, Azure Database for PostgreSQL, Azure Cache for Redis, Google Cloud SQL, and Google Cloud Memorystore

Getting an API Key

To start using cyborgdb-lite, you will need to get an API key from db.cyborg.co. You can sign up for a free account, create an API key and use it immediately.

Installation

# Ensure Python 3.9 - 3.13 is installed
# You may want to create a virtual environment:
conda create -n cyborg-env python=3.12
conda activate cyborg-env

# Install CyborgDB Lite:
pip install cyborgdb-lite

Quickstart

import cyborgdb_lite as cyborgdb
import secrets

# Set your CyborgDB API key
api_key = 'cyborgdb_000000' # Replace with your actual API key

# Create a client with memory storage
# You can replace this with Postgres
index_location = cyborgdb.DBConfig("memory")  # For index contents
config_location = cyborgdb.DBConfig("memory") # For config/loading
items_location = cyborgdb.DBConfig("memory")  # For item contents

# Create a client
client = cyborgdb.Client(api_key, index_location, config_location, items_location)

# Create an IVFFlat index
index_config = cyborgdb.IndexIVFFlat(dimension=4, n_lists=1024)

# Generate an encryption key for the index
index_key = secrets.token_bytes(32)

# Create an encrypted index
index = client.create_index("my_index", index_key, index_config)

# Add items to the encrypted index
items = [
    {"id": "item_1", "vector": [0.1, 0.2, 0.3, 0.4], "contents": "Hello!"},
    {"id": "item_2", "vector": [0.5, 0.6, 0.7, 0.8], "contents": "Bonjour!"},
    {"id": "item_3", "vector": [0.9, 0.10, 0.11, 0.12], "contents": "Hola!"}
]

index.upsert(items)

# Query the encrypted index
query_vector = [0.1, 0.2, 0.3, 0.4]
results = index.query(query_vector)

# Print the results
for result in results:
    print(f"ID: {result.id}, Distance: {result.distance}")

Connecting to Different Backing Stores

PostgreSQL

index_location = cyborgdb.DBConfig(
    location="postgres",
    table_name="index_table", 
    connection_string="host=localhost dbname=cyborgdb_lite user=postgres password=postgres"
)

Limitations

CyborgDB Lite is an evaluation version with the following limitations:

  • Maximum 1,000,000 encrypted embeddings
  • Only 2 supported backing stores (PostgreSQL & Memory)
  • Only 1 index type (IVFFlat)
  • Maximum 4 CPU threads
  • Non-commercial use only

For production use or to remove these limitations, please upgrade to CyborgDB Core.

Documentation

For more detailed documentation, visit:

System Requirements

  • Python 3.9 - 3.13
  • Operating Systems: Linux, macOS, or WSL

License

CyborgDB Lite is provided under a limited, evaluation-only license for non-commercial use. For commercial use, please contact Cyborg for licensing information.

About Cyborg

Cyborg is dedicated to making AI safe and secure. We develop solutions that enable organizations to leverage AI while maintaining the confidentiality and privacy of their data.

Visit our website | Contact Us

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 Distributions

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

cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

cyborgdb_lite-0.12.0-cp313-cp313-macosx_14_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

cyborgdb_lite-0.12.0-cp312-cp312-macosx_14_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

cyborgdb_lite-0.12.0-cp311-cp311-macosx_14_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

cyborgdb_lite-0.12.0-cp310-cp310-macosx_14_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

cyborgdb_lite-0.12.0-cp39-cp39-macosx_14_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

Details for the file cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 441bf46f4d28c724755d9dc7d170c4927739600591933e311623c433b2b9b8f0
MD5 b1827a1faa0da84299cafd970fde0add
BLAKE2b-256 423dc1161d8f6c7a80d6f457d63969e200cffe5a626900daa03ba1086ddfc435

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 337a118d7f06cf27baff0d798fa39378adb4cbc9cc9999b6c4b382eafc847897
MD5 6d5db89e762cd45893d97a722db27968
BLAKE2b-256 f808defaad648af7db58df13cc70b95e18c9356db6916c353f2433d10ad577ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a98e35629991f341a23d68ac44bde749ba97c2e8fad57f474789db35ea94d076
MD5 d07080446ef513bc9f9c4258e897e154
BLAKE2b-256 fb19dea59b191b05237fff8c2de3fdcc407bd2aff866d2330b7456b7bd3e4b0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2c4d3ef00a5ee943ef65207d4da37541b5a45f01787727ec567b21ea7706159d
MD5 713f754a183ab08d4a54135d294dbaea
BLAKE2b-256 1795d5ebe869579644e9a8182491a78bd39e125ef3cf11eff9344aa4c64190b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0eed5470fd14456fb8336e04884a90679e81a9c6d2f63827f1472dee61b819d8
MD5 7e83f7e30d99dcac3a6e21d12d177deb
BLAKE2b-256 a713cddc3990e1f7f25d6fa867d489f294958f6e3cb816dce76e9974419b08d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6c5c6b947ba82714d51f8b7baa43cd3c651feb30657fbed3d677161bc401e124
MD5 2fb22b2e67aead6003721b5a63a8911d
BLAKE2b-256 9572684d7ed59dcd7446cb5bcf86e3c8f451897297f05d712e41aac431340379

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7fda218deb08e7f4628c80386543bc703ceba311081d38a8828d87f1560fe18
MD5 c0c871d39a552aaff893efa7d82fb157
BLAKE2b-256 0132fd1d6aa740dac4f915277b3fc480d7ccee7f07e4e4e6ceb55cfda80262d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d6c9e3bcbfbe0b8253f1c2eaa223736f95d0aa2cbb460e2a8abbc4896768d87d
MD5 07bfb7db3df7c22b12d5af857e5807ef
BLAKE2b-256 507ddfc30f08a3ffffcb624c83659adbcd4be10890b38bff268aa7db0a1eae86

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4143d677d9d73917b27733194cea2724d5dcf605500a8d2d87313b3946bcf7d4
MD5 215b7a7a211b0eda4e0f42a80d486084
BLAKE2b-256 c46a337a084e5b70ca4529437a9c097b37fbb4b54325ff6773f46c8ef15c89b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9425d4b58aba26f26dceda76d4bb30b31b0d7b4ed57124c120825bf8c8725b39
MD5 c69c65e6ebfb1adb50a6c82248ecdbed
BLAKE2b-256 e5102767aed762d2440712389d4de252ab7ce27eb9cbc3b937a8eb4097bbb73b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2d8801336864509029d9aa79808e781bcc3f60de5fcfd4dafe500ce6fb20af45
MD5 153f8d39b3947b56330fa9eadc1487c4
BLAKE2b-256 6febbb194b5d94faea9a6b891c0921b6c906e4812480ac185006424f71eea347

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8241127a5f02ab39748b711e3fb7915b593e31c57668fe77f52b7f7a8ed9be75
MD5 9fcab2c3602fcfaeea69fa8d74e6bf55
BLAKE2b-256 4f902751ec0b5e38e898f310d1fa8f1e8ac5c68239bfb0cd69aa7c9b89615f55

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 713fbb2c13bba6dc810c4e2605813773135799fa1d5f26775c6cf432a093ae42
MD5 e2ac5104f1f59ae3963a0cb0274665ff
BLAKE2b-256 5ed0e31b54af07f3be84495ec10bf4e3b712a23204aeeec7601a95b597922ac1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 23999c17efcdd10de750908eb6fb6ab9dcf45e3677a470a3283b45933187961b
MD5 44ded222f3294abcda20666a13384e6c
BLAKE2b-256 cb5d8f6de1438edf30787c99446647d02fb68d6b66fd63fd9d8465de0ba2a3d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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

File details

Details for the file cyborgdb_lite-0.12.0-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.12.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b9cc637d2c5f248c8f9ed0c062ede0f20a3b78c6788a08cee49eb815ca43d39f
MD5 46eb06ed44bc49a9b2e42ef6fe2aa8cc
BLAKE2b-256 0fdbef91a7d1fabde10c0363daf023cc8abfaad42a0d7db831ad2caf76526314

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.12.0-cp39-cp39-macosx_14_0_arm64.whl:

Publisher: build_test_py_lite.yaml on cyborginc/cyborgdb-core

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