Skip to main content

langchain-cyborgdb

LangChain integration for CyborgDB, the Confidential Vector Database. Provides CyborgVectorStore, a LangChain VectorStore backed by CyborgDB's encrypted vector indexes.

This package is a thin wrapper around the integration that ships in cyborgdb-core — it re-exports CyborgVectorStore, CyborgEmbeddings, and StorageConfig under the standalone package name that LangChain's integration directory expects.

Installation

pip install langchain-cyborgdb

Quick Start

The example below uses OpenAI embeddings (pip install langchain-openai), but any LangChain Embeddings implementation works. You'll need a CyborgDB API key from cyborg.co.

from langchain_cyborgdb import CyborgVectorStore, StorageConfig
from langchain_openai import OpenAIEmbeddings

store = CyborgVectorStore.from_texts(
    texts=["hello world", "goodbye world"],
    embedding=OpenAIEmbeddings(),
    index_key=CyborgVectorStore.generate_key(),
    api_key="your-api-key",
    storage_config=StorageConfig.disk("/tmp/cyborgdb-langchain"),
    metric="cosine"
)

docs = store.similarity_search("hello")

Key Features

  • Full VectorStore API compatibility (add_texts, similarity_search, etc.)
  • Async operations support
  • Configurable distance metrics (cosine, euclidean, squared_euclidean)
  • Document ID tracking and management
  • Max marginal relevance search
  • Factory methods (from_texts, from_documents) for quick setup

Key Classes

CyborgVectorStore

Implements the LangChain-compatible vector store interface. Supports:

  • .add_texts() / .add_documents()
  • .similarity_search() / .similarity_search_with_score()
  • .max_marginal_relevance_search()
  • .get_document() / .get_documents() / .list_ids() / .delete()
  • .as_retriever() for use in LangChain chains
  • Async variants (.aadd_texts(), .asimilarity_search(), etc.)

StorageConfig

Configuration object for defining where index data is stored, built with StorageConfig.disk(path) or StorageConfig.s3(bucket, ...).

Documentation

Full documentation, including metadata filtering and hybrid (BM25) search, lives at docs.cyborg.co.

Using the CyborgDB client/server deployment instead of the embedded engine? The same integration is available via pip install cyborgdb[langchain] — see the Deployment Models Guide.

License

This wrapper is MIT licensed. It depends on cyborgdb-core, which is distributed under its own proprietary license.

Metadata

Release files for langchain-cyborgdb 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-cyborgdb 0.18.0
File Size Uploaded
langchain_cyborgdb-0.18.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-cyborgdb 0.18.0
File Interpreter ABI Platform
langchain_cyborgdb-0.18.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / langchain_cyborgdb-0.18.0.tar.gz

Download URL langchain_cyborgdb-0.18.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
41a6bc7f2e1b45cf54f5d6e2b3c02d28f03c6b82c031d6838a96ece85d9c3cea
BLAKE2b-256 checksum
How to use checksums
81201608d690cf12f2f7f2659b31bd6cce47d910d4fc9d00209684c980404a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / langchain_cyborgdb-0.18.0-py3-none-any.whl

Download URL langchain_cyborgdb-0.18.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0e9e08ccd6c42bbe59f4e9051a0da9b1ee5f2867955ff1cacc95954f377e62d
BLAKE2b-256 checksum
How to use checksums
6938e67d6a6b4c6509ef34fd618b2ca63874130aa6ada876325ed579768db06e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page