Skip to content

Commit d45e2cb

Browse files
Merge pull request #56 from epsilla-cloud/dev
update support epsilla cloud in langchain
2 parents 3b93516 + 08fd70c commit d45e2cb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/Question_Answering_Pipeline_with_LangChain_and_EpsillaCloud.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Step4. Load the vector store
3939
from langchain_community.vectorstores import Epsilla
40-
from pyepsilla import cloud, vectordb
40+
from pyepsilla import cloud
4141

4242
db_name = f"db_{db_id.replace('-', '_')}"
4343
db_path = f"/data/{project_id}/{db_name}/s{db_sharding_id}"
@@ -61,6 +61,12 @@
6161
collection_name=table_name,
6262
)
6363

64+
# query = "What did the president say about Ketanji Brown Jackson"
65+
# docs = vector_store.similarity_search(query)
66+
# print(docs[0].page_content)
67+
68+
69+
6470
# Step4. Create the QA for Retrieval
6571
from langchain.chains import RetrievalQA
6672
from langchain_openai import OpenAI

0 commit comments

Comments
 (0)