An integration package connecting Couchbase and GigaChain
Project description
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",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gigachain_couchbase-0.0.1.tar.gz
.
File metadata
- Download URL: gigachain_couchbase-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01447a32dc73a1d9834e5e0a1d9477c99fc76ef20dc418dc7a57e82999404a41 |
|
MD5 | 4109ce63aff570fdf63873a72e6e56da |
|
BLAKE2b-256 | 981cdb524dcfefc220e165748cd2c6c0383810314e66c310e9369b51339b3415 |
File details
Details for the file gigachain_couchbase-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gigachain_couchbase-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41af238df43819be5ccf1dd2b594ae159811e3758aa523a38209948c1c77b0f5 |
|
MD5 | d83761ff491b4414a0a0a984896ace5a |
|
BLAKE2b-256 | 1dbd021bb2faeee7d14db358d1af9db940edf94b15467840ab8b23a9549141b0 |