Spaces:
Sleeping
Sleeping
chore: Update langchain_community.retrievers imports
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import gradio as gr
|
|
5 |
from dotenv import load_dotenv
|
6 |
from langchain.callbacks.base import BaseCallbackHandler
|
7 |
from langchain.embeddings import CacheBackedEmbeddings
|
8 |
-
from langchain_community.retrievers import BM25Retriever
|
|
|
9 |
from langchain.storage import LocalFileStore
|
10 |
from langchain_anthropic import ChatAnthropic
|
11 |
from langchain_community.chat_models import ChatOllama
|
|
|
5 |
from dotenv import load_dotenv
|
6 |
from langchain.callbacks.base import BaseCallbackHandler
|
7 |
from langchain.embeddings import CacheBackedEmbeddings
|
8 |
+
from langchain_community.retrievers import BM25Retriever
|
9 |
+
from langchain.retrievers import EnsembleRetriever
|
10 |
from langchain.storage import LocalFileStore
|
11 |
from langchain_anthropic import ChatAnthropic
|
12 |
from langchain_community.chat_models import ChatOllama
|