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.

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.11.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (55.9 MB view details)

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

cyborgdb_lite-0.11.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.6 MB view details)

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

cyborgdb_lite-0.11.1-cp313-cp313-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

cyborgdb_lite-0.11.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (55.9 MB view details)

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

cyborgdb_lite-0.11.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.6 MB view details)

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

cyborgdb_lite-0.11.1-cp312-cp312-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

cyborgdb_lite-0.11.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (55.9 MB view details)

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

cyborgdb_lite-0.11.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.6 MB view details)

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

cyborgdb_lite-0.11.1-cp311-cp311-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

cyborgdb_lite-0.11.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (55.9 MB view details)

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

cyborgdb_lite-0.11.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.6 MB view details)

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

cyborgdb_lite-0.11.1-cp310-cp310-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

cyborgdb_lite-0.11.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (55.9 MB view details)

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

cyborgdb_lite-0.11.1-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.6 MB view details)

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

cyborgdb_lite-0.11.1-cp39-cp39-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 40032ad7622d0ac83a4174e38808b5c15590e83603deeb6784c38a8c6bc10ec4
MD5 737867481248ab2741e255b7861b6831
BLAKE2b-256 f61867f20a491b882b32db09667808c9c07922e276e05ef1d59d511d5bef3de5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f23e910842c776ff7732a0c37e51d7c38731c2474a1d268cd97c5d357dd2af52
MD5 73ac7c48779fc097c628e3b25659f2aa
BLAKE2b-256 d1bbd6f749c47dfff016be28f0424f3156470121145e125ed3fcc1280b6883bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 11f799d4b3f2862155f9d8b7860674ec04b59e980179154cf0e50c06b63112bc
MD5 c853586d83481e543f773b3ace0dafb0
BLAKE2b-256 9b8cb98374fa5c48dc55c27094e37b12382bc9e186388e7a4fb50a32fd0b7f96

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3168a6e21083531d23538e7ee1089dfd5cb2f12e44a0c751d21eda255fbb744
MD5 1dabe905a2293a68f25973c87339a885
BLAKE2b-256 7d6c2a4b04ad65167b75219346ff85f7e51348b87ed12bfe157bf79851f9128f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9e06f88d3b39b5fde119a911a2ea3e7bff0c212c51ca4e1b9e695072a2400168
MD5 5c41f4195c8eab7c8f38fbda8c555f86
BLAKE2b-256 672601d72180d744b7955896abd8f1790462e76135bf8a36f8d1f50c781afcf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 478c6a074e9814a051974e021de80bbb64aba31eed48d823352ee13b381717e4
MD5 4fe4cb5b0921c00c8f8719dc5e130fa6
BLAKE2b-256 5ab182dcb64525c62dee88aa561fb0d315fd1490930f326740181e43b4c55368

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41374e7ccce859a6d750e6b79bf6661b6399d0c9d60f6aa62580f07232fa0491
MD5 a0806ceba6800d74fb8f09e0c2efeda4
BLAKE2b-256 4b213e2a1d4b7cc227b81fad6fe019ec17d936f49fe5aa963b27854d0f5dfb4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 95191e291d1ab1a429f55112eb26a8d52e9e6cc9c0aaf073cb1421650e1933c6
MD5 e2b69d6faddf33e01e718563925455f3
BLAKE2b-256 ad36163651e0f0e6e11030bbaeef66ffeadd9e08d0a5e7828f58fecb88e84b00

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f0b24872bce5de40d4592cff50c88c4722832eb547546b0163d13ba5d20f2cf6
MD5 bcb3346b8851892e0845818f534562a1
BLAKE2b-256 211622448e1694da9abb1134513d7f15f043b1d0db04b51a7f2d6892ee48216f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7b2af14cdc67697595ccfd33f573aed317ab56bf77e8081484a0bab13a7ca18
MD5 ef51bb3ebb4b6c4df7da139885e21bb1
BLAKE2b-256 39e56230f8a4e750a1e51f33a2a81ce29d552aeea40443a4e2b7061a345751d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eea6fbd246195bd6818e7f2db1bb9b1125134828b25443e1230daab55936caf2
MD5 1931471746d467045de4b5112c6164f3
BLAKE2b-256 10e7744590a122d5e64b2135fb8eeed8904b0f5562128f5ed579c01936f7c6da

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 535f95dd7a597471e9220cd5fa7f4d52a215995ebeaffa6828fe8bd1792eeae7
MD5 44e6b680a3b53c72720bbd8793c0b02e
BLAKE2b-256 c83ad23a5fc4f1a00ae9be0e352037e5017ffaca0de05724db53410a9f458770

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d702ab03a7a149c741d5c334b9b54a40ee956a21654718800493c635089d2565
MD5 873b09e09382adf39e4705edc0b2cdb5
BLAKE2b-256 c3ebc51993fcaff9b7b98dc8ba8a223f9f9c658719ec5d94fa24feb1715305a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 32e47ae13a2bb2f7397e4fa32d63f62fc9e0aed02b3d3011ed52d7827ffa2f84
MD5 ace051acbb5cbf7e16186f1b275e1d53
BLAKE2b-256 a338f0c85fee13006694d8690e8b62c2a945d689db0fce4cf62394a5469df056

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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.11.1-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.1-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8cbbf85743cddf2a06eb805fb3350fa66f39af2659a65f79cd665c2ba1cde33a
MD5 79f357ca6f8157efd78f697515ee0f67
BLAKE2b-256 2a919540936bb8c30ac3dfae11112f1e579a0ec6b270bdb2a0991b2c2372a9f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyborgdb_lite-0.11.1-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