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.0-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.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.5 MB view details)

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

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

Uploaded CPython 3.13macOS 14.0+ ARM64

cyborgdb_lite-0.11.0-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.0-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.0-cp312-cp312-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

cyborgdb_lite-0.11.0-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.0-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.0-cp311-cp311-macosx_14_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

cyborgdb_lite-0.11.0-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.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.5 MB view details)

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

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

Uploaded CPython 3.10macOS 14.0+ ARM64

cyborgdb_lite-0.11.0-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.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (35.5 MB view details)

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

cyborgdb_lite-0.11.0-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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dad06fb094e496eeed1e59ab7299ff104510124cfae3ac44037950e3e593ee6b
MD5 5e3f25991f417f65e3fc2d0239b21548
BLAKE2b-256 24db8195fe57229ba7eade5f9d5eb08a18206d3d116926d376265091b2df1b75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc79d9f5749b92a62ce28ac22b94255d2976533f39154af7aecb2057dfb6c328
MD5 b5f616b579453b734dff99fd135a81b1
BLAKE2b-256 e02f6e13414dc57b3e68cbe7703c6b006cab024a352e3f92affc538c8ee19d1a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8fc13784fd48afd36c10d9a405592cc32158fa1230c20529ca765cc48a05ef94
MD5 4ae69f3b34b5fb99c160606aa9a9a9ee
BLAKE2b-256 7bfa9984c17416469d520c3fca7d3ee75f173b440f337ffbb5bd576149a5c250

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3020dab3b71cd8581a72cb0cfea24e968b4cc4eaaeac8f7376cb4b9558d03e3
MD5 e401f10fe922ae86280377162e4cdd67
BLAKE2b-256 862f6df44124fb13824495d23fa82671384aa977825c57f7cf201297a3f6c042

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 68fe2436822ccfbc7c101637a1a57034a4e160ea74c32649ec9c1a067ab3dc46
MD5 89c3c663c5caa0362bf940daa67451a6
BLAKE2b-256 9dfe156b21900c42b038fed1c9a60d2a212b61a882b25ec774e0d7ec529f0555

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 883bcf023d149ad7065a064b640f41555a9f85d2ea19758c0829c5dda601f76c
MD5 893f36287fe309d1424f165893a2cd4b
BLAKE2b-256 013ce2218fde36710e3e3446d26c9862ce019e14112d028cc8e717439a5114f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a13d107529c3eac6d4238e4d0cf26074103d99cb5b62dcbc29c8a8a5dbbd037d
MD5 1824ff8b1a7f43aa2d9c1394508b3c9a
BLAKE2b-256 bb68c5a78c1423eb2b6e80e8750d7b8d1ab6d2a469db950637bdc7e3d9608b3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 734edb97ed1639fab200e0a8704f7f03c848eefa2aa173e543c113bb0a820d25
MD5 05ed717a6884b854bf8eccd1fc9d50fa
BLAKE2b-256 5fa557d1d5b5992cc3c5345eea5faf652c18895891adffe0b9bf1526b3e30f1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b2ae45370dfe2dd8230c349864891c2390bfc9ee8a4ceecf34649473a70f7545
MD5 3a5b92b8404d77e00b6740d6785ffc9f
BLAKE2b-256 7c75104a493e3a25424e82329677c746c641610b0b13a6b7cf6cb12813317390

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 346c5ec5a989930348f80b75b4583d1455226fcb8451f825985525c89967ed08
MD5 d2eab9be3e90f36ddc75b49985e08108
BLAKE2b-256 151ce36b1efb90b339d12d32be262a8edb422769134eba59e91544d2a5c81860

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ed147b03cba2d797b5a1cef66917e9502882b0af35c828b75416cf542964e2fc
MD5 9258ed7e7e9678659cc3029d7e6fcde1
BLAKE2b-256 a7be34d466a37afdb77501b5d002b93aaab998104108c633de5c24e46ecf1a62

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 363aa73e2ee19c2a4e948f3f8c16d01400bd7044fe3406bdf9cece46c6837cd0
MD5 a7a3261ad88d484b9ab6d411fffd9084
BLAKE2b-256 455f919a5c35a74babe0a42fe3da5d517664332de20adbdd09cb64cc2aa1c0dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 695dec2194ff67a16fbda753e6982c9f08d437f4a68167b9b5b62f62db7bed70
MD5 bf2bb20b2c7ce02768ff0c07eb64d738
BLAKE2b-256 c43744b2476292c45c720a07a23f70e0290f504afd8e7a7777cc24f659f3cac2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 28a55c022a2807b49f8af7d14d20260e127d182bdbdef1304b691c980bd263e2
MD5 9363aad875c0bfec457fdba76a6d14a7
BLAKE2b-256 6df3163a216ca74cc39c8060744d40de6c1ecc69be1975afb74666a41f136d35

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cyborgdb_lite-0.11.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d2bc63633c332f24741822becf08f63e0ea58ebf68192ace44003460f5b7e542
MD5 2e3c65c2bbd6a6208368009f254d3d8e
BLAKE2b-256 3d463756a3f9406539b359c02c7bb60a9dea5c9a68fc43ddb1c9c1681b9280dc

See more details on using hashes here.

Provenance

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