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()/.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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_cyborgdb-0.1.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_cyborgdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / langchain_cyborgdb-0.1.0.tar.gz
| Download URL | langchain_cyborgdb-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d3c0764cd92ea9cf3bdcf458f6cf622d318aa21fd7873467e0b4e18e7ff61b9
|
|
BLAKE2b-256 checksum How to use checksums |
977c2e2c53a57c3a1a202012105aacb140ef2ce7dcf5a3342e5efe5a61094cd3
|
| 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 logRelease files / langchain_cyborgdb-0.1.0-py3-none-any.whl
| Download URL | langchain_cyborgdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7596ec09b240c8f036868ded3571ccbaae8053d93d1a7e242e27e3930c793ec4
|
|
BLAKE2b-256 checksum How to use checksums |
fa72bc8121bbb7e15e8f7f726cf3baab1b4362c4e3401d93e67db058df7a4ad4
|
| 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