Spaces:
Running
Running
Kurt
commited on
Commit
•
9c5ae44
1
Parent(s):
e62249b
toll6
Browse files
app.py
CHANGED
@@ -651,7 +651,7 @@ bm25_index = BM25Index.build_from_documents(
|
|
651 |
bm25_index.save("output/bm25_index")
|
652 |
|
653 |
def search(query: str) -> List[Hit]:
|
654 |
-
bm25_index =
|
655 |
result = bm25_index.retrieve(query)
|
656 |
|
657 |
l : return_type = []
|
|
|
651 |
bm25_index.save("output/bm25_index")
|
652 |
|
653 |
def search(query: str) -> List[Hit]:
|
654 |
+
bm25_index = BM25Retriever(index_dir="output/bm25_index")
|
655 |
result = bm25_index.retrieve(query)
|
656 |
|
657 |
l : return_type = []
|