langchain-couchbase
This package contains the LangChain integration with Couchbase
Installation
pip install -U langchain-couchbase
Usage
The CouchbaseVectorStore class exposes the connection to the Couchbase vector store.
from langchain_couchbase.vectorstores import CouchbaseVectorStore
from couchbase.cluster import Cluster
from couchbase.auth import PasswordAuthenticator
from couchbase.options import ClusterOptions
from datetime import timedelta
auth = PasswordAuthenticator(username, password)
options = ClusterOptions(auth)
connect_string = "couchbases://localhost"
cluster = Cluster(connect_string, options)
# Wait until the cluster is ready for use.
cluster.wait_until_ready(timedelta(seconds=5))
embeddings = OpenAIEmbeddings()
vectorstore = CouchbaseVectorStore(
cluster=cluster,
bucket_name="",
scope_name="",
collection_name="",
embedding=embeddings,
index_name="vector-search-index",
)
Metadata
Release files for gigachain-couchbase 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gigachain_couchbase-0.1.1.tar.gz | 10.4 kB | Without provenance | Details for gigachain_couchbase-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gigachain_couchbase-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gigachain_couchbase-0.1.1-py3-none-any.whl |
Total release size: 23.6 kB
Release files / gigachain_couchbase-0.1.1.tar.gz
| Download URL | gigachain_couchbase-0.1.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66d5f3d95ff0305705f3087865fee1bccd537a4dec6032049cf40b3f85bfb26f
|
|
BLAKE2b-256 checksum How to use checksums |
58a77ec846251c4b82b1796207d906e04133d5e3b5fccb8edff1dd57460d1f46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Release files / gigachain_couchbase-0.1.1-py3-none-any.whl
| Download URL | gigachain_couchbase-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50d5a66f950b0fb0bdc334f66d3f902bea4c60eb834b7536bfdee9a43232cdb6
|
|
BLAKE2b-256 checksum How to use checksums |
51c20a5de79e5eeef82110a95bbb807d6b03ab38e65e737c4f145322a8a0f53e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Security for gigachain-couchbase 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.