File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
from datetime import timedelta
7
7
8
8
9
- from langchain_couchbase .vectorstores import CouchbaseVectorStore
9
+ from langchain_couchbase .vectorstores import CouchbaseSearchVectorStore
10
10
from langchain_openai import OpenAIEmbeddings , ChatOpenAI
11
11
from langchain_core .prompts import ChatPromptTemplate , MessagesPlaceholder
12
12
from langchain_core .runnables import (
@@ -59,9 +59,9 @@ def get_vector_store(
59
59
db_collection ,
60
60
_embedding ,
61
61
index_name ,
62
- ) -> CouchbaseVectorStore :
62
+ ) -> CouchbaseSearchVectorStore :
63
63
"""Return the Couchbase vector store"""
64
- vector_store = CouchbaseVectorStore (
64
+ vector_store = CouchbaseSearchVectorStore (
65
65
cluster = _cluster ,
66
66
bucket_name = db_bucket ,
67
67
scope_name = db_scope ,
Original file line number Diff line number Diff line change 7
7
from langchain .text_splitter import (
8
8
RecursiveCharacterTextSplitter ,
9
9
)
10
- from langchain_couchbase .vectorstores import CouchbaseVectorStore
10
+ from langchain_couchbase .vectorstores import CouchbaseSearchVectorStore
11
11
from couchbase .cluster import Cluster
12
12
from couchbase .auth import PasswordAuthenticator
13
13
from couchbase .options import ClusterOptions
@@ -77,7 +77,7 @@ def save_document(url: str):
77
77
cluster .wait_until_ready (timedelta (seconds = 5 ))
78
78
79
79
# Create the vector store object
80
- vector_store = CouchbaseVectorStore (
80
+ vector_store = CouchbaseSearchVectorStore (
81
81
embedding = embeddings ,
82
82
cluster = cluster ,
83
83
bucket_name = DB_BUCKET ,
Original file line number Diff line number Diff line change 1
1
beautifulsoup4 == 4.13.4
2
2
langchain-couchbase == 0.3.0
3
3
langchain-community == 0.3.24
4
- langchain-openai == 0.3.18
5
- langsmith == 0.3.43
4
+ langchain-openai == 0.3.19
5
+ langsmith == 0.3.44
6
6
python-dotenv == 1.1.0
7
7
streamlit == 1.45.1
8
8
tqdm == 4.67.1
You can’t perform that action at this time.
0 commit comments