Spaces:
Runtime error
Runtime error
makcrx
commited on
Commit
•
b068669
1
Parent(s):
f0252c4
test
Browse files- app.py +1 -1
- faiss_qa/index.faiss +3 -0
- faiss_qa/index.pkl +3 -0
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import reranking
|
5 |
|
6 |
embeddings = SentenceTransformerEmbeddings(model_name="multi-qa-MiniLM-L6-cos-v1")
|
7 |
-
db = FAISS.load_local('
|
8 |
|
9 |
def main(query):
|
10 |
result_docs = db.similarity_search_with_score(query, k=20)
|
|
|
4 |
import reranking
|
5 |
|
6 |
embeddings = SentenceTransformerEmbeddings(model_name="multi-qa-MiniLM-L6-cos-v1")
|
7 |
+
db = FAISS.load_local('faiss_qa', embeddings)
|
8 |
|
9 |
def main(query):
|
10 |
result_docs = db.similarity_search_with_score(query, k=20)
|
faiss_qa/index.faiss
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c8cd0a5770f3611331a1a236eb6729039efaa882b4e4e26d9376a2c0ec26e58
|
3 |
+
size 571437
|
faiss_qa/index.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8971a7f31e9824d0bd025ec6d4098ffc20bae88ab6faa972b074959661f3fecf
|
3 |
+
size 263215
|