Skip to content

Commit 7ca75e6

Browse files
authored
Update Question_Answering_Pipeline_with_LangChain_and_EpsillaCloud.py
1 parent 92e7959 commit 7ca75e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/Question_Answering_Pipeline_with_LangChain_and_EpsillaCloud.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
pip install langchain
99
pip install openai
1010
pip install tiktoken
11-
pip install pyepsilla
11+
pip install -U pyepsilla
1212
pip install -U langchain-openai
1313
pip install -U langchain-community
1414
"""
@@ -25,7 +25,7 @@
2525

2626

2727
# Step3. Load the documents
28-
from langchain.document_loaders import WebBaseLoader
28+
from langchain_community.document_loaders import WebBaseLoader
2929
from langchain.text_splitter import CharacterTextSplitter
3030
from langchain_openai import OpenAIEmbeddings
3131

@@ -43,13 +43,13 @@
4343
db_path = f"/data/{project_id}/{db_name}/s{db_sharding_id}"
4444
table_name = "MyCollection"
4545

46-
# Connect to Epsilla Cloud
46+
# Step4.1 Connect to Epsilla Cloud
4747
cloud_client = cloud.Client(
4848
project_id=project_id,
4949
api_key=epsilla_api_key,
5050
)
5151

52-
# Connect to Vectordb
52+
# Step4.2 Connect to Vectordb
5353
db_client = cloud_client.vectordb(db_id)
5454

5555
vector_store = Epsilla.from_documents(
@@ -67,7 +67,7 @@
6767

6868

6969

70-
# Step4. Create the QA for Retrieval
70+
# Step5. Create the QA for Retrieval
7171
from langchain.chains import RetrievalQA
7272
from langchain_openai import OpenAI
7373

0 commit comments

Comments
 (0)