CyborgDB provides a seamless integration with LangChain, enabling developers to leverage encrypted vector search for large language models (LLMs) and RAG pipelines. This integration is implemented via theDocumentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
CyborgVectorStore class, which conforms to the VectorStore interface from langchain-core.
Installation (Python Client SDK)
To use the LangChain integration with the CyborgDB Python Client SDK, you need to install thecyborgdb package with the langchain extra:
Installation (Embedded Library)
To install CyborgDB with LangChain support, you must install eithercyborgdb-core or cyborgdb-lite with the langchain extra. You can do this using pip:
Usage
To use CyborgDB with LangChain, you can import theCyborgVectorStore class from the cyborgdb_core.integrations.langchain or cyborgdb_lite.integrations.langchain module, depending on which version you are using.
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()and.delete()- Async variants (
.aadd_texts(),.asimilarity_search(), etc.) - Reversible document ID tracking
- Configurable distance metric (
cosine,euclidean,squared_euclidean)
DBConfig
Configuration object for defining the location of index data (memory, redis, postgres, etc.).