Spaces:
Running
Running
retriever2
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from langchain.tools import Tool
|
|
7 |
import os
|
8 |
import datasets
|
9 |
from langchain.docstore.document import Document
|
|
|
10 |
from retriever import extract_text
|
11 |
|
12 |
login(token=os.environ["HUGGINGFACEHUB_API_TOKEN"])
|
|
|
7 |
import os
|
8 |
import datasets
|
9 |
from langchain.docstore.document import Document
|
10 |
+
from langchain_community.retrievers import BM25Retriever
|
11 |
from retriever import extract_text
|
12 |
|
13 |
login(token=os.environ["HUGGINGFACEHUB_API_TOKEN"])
|