-
Notifications
You must be signed in to change notification settings - Fork 16k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
couchbase: Migrate couchbase partner package to different repo (#29239)
**Description:** Migrate the couchbase partner package to [Couchbase-Ecosystem](https://github.com/Couchbase-Ecosystem/langchain-couchbase) org
- Loading branch information
Showing
24 changed files
with
4 additions
and
4,505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
# langchain-couchbase | ||
This package has moved! | ||
|
||
This package contains the LangChain integration with Couchbase | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install -U langchain-couchbase | ||
``` | ||
|
||
## Usage | ||
|
||
The `CouchbaseVectorStore` class exposes the connection to the Couchbase vector store. | ||
|
||
```python | ||
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", | ||
) | ||
|
||
``` | ||
https://github.com/Couchbase-Ecosystem/langchain-couchbase/tree/main/langchain_couchbase |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.