Skip to content

Commit

Permalink
feat: Update Couchbase connection options in test_couchbasedb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
teetangh committed Sep 19, 2024
1 parent 8cf8fed commit 30bbab9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/vector_stores/test_couchbasedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import time
import unittest

from couchbase.auth import PasswordAuthenticator
from couchbase.options import ClusterOptions
from dotenv import load_dotenv

from graphrag.vector_stores.base import VectorStoreDocument, VectorStoreSearchResult
Expand All @@ -29,10 +31,12 @@ def setUpClass(cls):
index_name=INDEX_NAME,
vector_size=VECTOR_SIZE
)
auth = PasswordAuthenticator(COUCHBASE_USERNAME, COUCHBASE_PASSWORD)
cluster_options = ClusterOptions(auth)

cls.vector_store.connect(
connection_string=COUCHBASE_CONNECTION_STRING,
username=COUCHBASE_USERNAME,
password=COUCHBASE_PASSWORD
cluster_options=cluster_options
)

@classmethod
Expand Down

0 comments on commit 30bbab9

Please sign in to comment.