Spaces:
Runtime error
Runtime error
makcrx
commited on
Commit
•
f0252c4
1
Parent(s):
52cccaa
test
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ embeddings = SentenceTransformerEmbeddings(model_name="multi-qa-MiniLM-L6-cos-v1
|
|
7 |
db = FAISS.load_local('faiss_qa2', embeddings)
|
8 |
|
9 |
def main(query):
|
10 |
-
result_docs = db.similarity_search_with_score(query, k=
|
11 |
sentences = [doc[0].page_content for doc in result_docs]
|
12 |
# print('----------------------------------------------------------------')
|
13 |
# for doc in result_docs:
|
|
|
7 |
db = FAISS.load_local('faiss_qa2', embeddings)
|
8 |
|
9 |
def main(query):
|
10 |
+
result_docs = db.similarity_search_with_score(query, k=20)
|
11 |
sentences = [doc[0].page_content for doc in result_docs]
|
12 |
# print('----------------------------------------------------------------')
|
13 |
# for doc in result_docs:
|