File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 88pip install langchain
99pip install openai
1010pip install tiktoken
11- pip install pyepsilla
11+ pip install -U pyepsilla
1212pip install -U langchain-openai
1313pip install -U langchain-community
1414"""
2525
2626
2727# Step3. Load the documents
28- from langchain .document_loaders import WebBaseLoader
28+ from langchain_community .document_loaders import WebBaseLoader
2929from langchain .text_splitter import CharacterTextSplitter
3030from langchain_openai import OpenAIEmbeddings
3131
4343db_path = f"/data/{ project_id } /{ db_name } /s{ db_sharding_id } "
4444table_name = "MyCollection"
4545
46- # Connect to Epsilla Cloud
46+ # Step4.1 Connect to Epsilla Cloud
4747cloud_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
5353db_client = cloud_client .vectordb (db_id )
5454
5555vector_store = Epsilla .from_documents (
6767
6868
6969
70- # Step4 . Create the QA for Retrieval
70+ # Step5 . Create the QA for Retrieval
7171from langchain .chains import RetrievalQA
7272from langchain_openai import OpenAI
7373
You can’t perform that action at this time.
0 commit comments