Skip to content

Commit 1051fa5

Browse files
authored
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
1 parent eaf2fb2 commit 1051fa5

24 files changed

+4
-4505
lines changed

libs/packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ packages:
259259
downloads: 35495
260260
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
261261
- name: langchain-couchbase
262-
path: libs/partners/couchbase
263-
repo: langchain-ai/langchain
262+
path: .
263+
repo: Couchbase-Ecosystem/langchain-couchbase
264264
downloads: 347
265265
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
266266
- name: langchain-ollama

libs/partners/couchbase/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

libs/partners/couchbase/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

libs/partners/couchbase/Makefile

Lines changed: 0 additions & 64 deletions
This file was deleted.

libs/partners/couchbase/README.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,3 @@
1-
# langchain-couchbase
1+
This package has moved!
22

3-
This package contains the LangChain integration with Couchbase
4-
5-
## Installation
6-
7-
```bash
8-
pip install -U langchain-couchbase
9-
```
10-
11-
## Usage
12-
13-
The `CouchbaseVectorStore` class exposes the connection to the Couchbase vector store.
14-
15-
```python
16-
from langchain_couchbase.vectorstores import CouchbaseVectorStore
17-
18-
from couchbase.cluster import Cluster
19-
from couchbase.auth import PasswordAuthenticator
20-
from couchbase.options import ClusterOptions
21-
from datetime import timedelta
22-
23-
auth = PasswordAuthenticator(username, password)
24-
options = ClusterOptions(auth)
25-
connect_string = "couchbases://localhost"
26-
cluster = Cluster(connect_string, options)
27-
28-
# Wait until the cluster is ready for use.
29-
cluster.wait_until_ready(timedelta(seconds=5))
30-
31-
embeddings = OpenAIEmbeddings()
32-
33-
vectorstore = CouchbaseVectorStore(
34-
cluster=cluster,
35-
bucket_name="",
36-
scope_name="",
37-
collection_name="",
38-
embedding=embeddings,
39-
index_name="vector-search-index",
40-
)
41-
42-
```
3+
https://github.com/Couchbase-Ecosystem/langchain-couchbase/tree/main/langchain_couchbase

libs/partners/couchbase/langchain_couchbase/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)