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 66from datetime import timedelta
77
88
9- from langchain_couchbase .vectorstores import CouchbaseVectorStore
9+ from langchain_couchbase .vectorstores import CouchbaseSearchVectorStore
1010from langchain_openai import OpenAIEmbeddings , ChatOpenAI
1111from langchain_core .prompts import ChatPromptTemplate , MessagesPlaceholder
1212from langchain_core .runnables import (
@@ -59,9 +59,9 @@ def get_vector_store(
5959 db_collection ,
6060 _embedding ,
6161 index_name ,
62- ) -> CouchbaseVectorStore :
62+ ) -> CouchbaseSearchVectorStore :
6363 """Return the Couchbase vector store"""
64- vector_store = CouchbaseVectorStore (
64+ vector_store = CouchbaseSearchVectorStore (
6565 cluster = _cluster ,
6666 bucket_name = db_bucket ,
6767 scope_name = db_scope ,
Original file line number Diff line number Diff line change 77from langchain .text_splitter import (
88 RecursiveCharacterTextSplitter ,
99)
10- from langchain_couchbase .vectorstores import CouchbaseVectorStore
10+ from langchain_couchbase .vectorstores import CouchbaseSearchVectorStore
1111from couchbase .cluster import Cluster
1212from couchbase .auth import PasswordAuthenticator
1313from couchbase .options import ClusterOptions
@@ -77,7 +77,7 @@ def save_document(url: str):
7777cluster .wait_until_ready (timedelta (seconds = 5 ))
7878
7979# Create the vector store object
80- vector_store = CouchbaseVectorStore (
80+ vector_store = CouchbaseSearchVectorStore (
8181 embedding = embeddings ,
8282 cluster = cluster ,
8383 bucket_name = DB_BUCKET ,
Original file line number Diff line number Diff line change 11beautifulsoup4 == 4.13.4
22langchain-couchbase == 0.3.0
33langchain-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
66python-dotenv == 1.1.0
77streamlit == 1.45.1
88tqdm == 4.67.1
You can’t perform that action at this time.
0 commit comments