Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ embeddings = HuggingFaceEmbeddings(model_name="BAAI/bge-large-en")
|
|
22 |
|
23 |
# 加载数据
|
24 |
#docsearch = FAISS.from_texts(texts, embeddings)
|
25 |
-
docsearch = FAISS.load_local("
|
26 |
|
27 |
|
28 |
chain = load_qa_chain(OpenAI(), chain_type="stuff",verbose=True)
|
|
|
22 |
|
23 |
# 加载数据
|
24 |
#docsearch = FAISS.from_texts(texts, embeddings)
|
25 |
+
docsearch = FAISS.load_local("./faiss_index", embeddings)
|
26 |
|
27 |
|
28 |
chain = load_qa_chain(OpenAI(), chain_type="stuff",verbose=True)
|