Skip to content

Commit

Permalink
couchbase: Migrate couchbase partner package to different repo (#29239)
Browse files Browse the repository at this point in the history
**Description:** Migrate the couchbase partner package to
[Couchbase-Ecosystem](https://github.com/Couchbase-Ecosystem/langchain-couchbase)
org
  • Loading branch information
nithishr authored Jan 15, 2025
1 parent eaf2fb2 commit 1051fa5
Show file tree
Hide file tree
Showing 24 changed files with 4 additions and 4,505 deletions.
4 changes: 2 additions & 2 deletions libs/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ packages:
downloads: 35495
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
- name: langchain-couchbase
path: libs/partners/couchbase
repo: langchain-ai/langchain
path: .
repo: Couchbase-Ecosystem/langchain-couchbase
downloads: 347
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
- name: langchain-ollama
Expand Down
3 changes: 0 additions & 3 deletions libs/partners/couchbase/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions libs/partners/couchbase/LICENSE

This file was deleted.

64 changes: 0 additions & 64 deletions libs/partners/couchbase/Makefile

This file was deleted.

43 changes: 2 additions & 41 deletions libs/partners/couchbase/README.md
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
10 changes: 0 additions & 10 deletions libs/partners/couchbase/langchain_couchbase/__init__.py

This file was deleted.

Loading

0 comments on commit 1051fa5

Please sign in to comment.