Spaces:
Runtime error
Runtime error
makcrx
commited on
Commit
·
cf67f9b
1
Parent(s):
05da059
test
Browse files- .gitattributes +1 -0
- app.py +1 -1
- faiss_qa2/index.faiss +3 -0
- faiss_qa2/index.pkl +3 -0
- requirements.txt +1 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.faiss filter=lfs diff=lfs merge=lfs -text
|
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_qa2', embeddings)
|
8 |
|
9 |
def main(query):
|
10 |
result_docs = db.similarity_search_with_score(query, k=20)
|
faiss_qa2/index.faiss
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b885a31060ca83d32e16db9302dedee4f7f61968039097403ede316b1ee2bff
|
3 |
+
size 1142829
|
faiss_qa2/index.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e27f5ee424fbbf498984c749b3966b12d4a8d666f06ae98924488cab6df839b
|
3 |
+
size 269359
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
faiss-cpu
|
2 |
langchain
|
3 |
sentence_transformers
|
|
|
1 |
+
torch
|
2 |
faiss-cpu
|
3 |
langchain
|
4 |
sentence_transformers
|