Spaces:
Paused
Paused
Use backwards-compatible langchain.chains import for RetrievalQA
Browse files- medrax/rag/rag.py +1 -1
- medrax/tools/rag.py +1 -1
medrax/rag/rag.py
CHANGED
|
@@ -9,7 +9,7 @@ from langchain_community.document_loaders import TextLoader, PyPDFLoader, Docx2t
|
|
| 9 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 10 |
from langchain_pinecone import PineconeVectorStore
|
| 11 |
from pinecone import Pinecone
|
| 12 |
-
from
|
| 13 |
from langchain_community.chat_message_histories import ChatMessageHistory
|
| 14 |
from langchain_core.runnables.history import RunnableWithMessageHistory
|
| 15 |
from langchain_core.retrievers import BaseRetriever
|
|
|
|
| 9 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 10 |
from langchain_pinecone import PineconeVectorStore
|
| 11 |
from pinecone import Pinecone
|
| 12 |
+
from langchain.chains import RetrievalQA
|
| 13 |
from langchain_community.chat_message_histories import ChatMessageHistory
|
| 14 |
from langchain_core.runnables.history import RunnableWithMessageHistory
|
| 15 |
from langchain_core.retrievers import BaseRetriever
|
medrax/tools/rag.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from langchain_core.tools import BaseTool
|
| 2 |
from medrax.rag.rag import RAGConfig, CohereRAG
|
| 3 |
-
from
|
| 4 |
from typing import Dict, Tuple, Any
|
| 5 |
|
| 6 |
|
|
|
|
| 1 |
from langchain_core.tools import BaseTool
|
| 2 |
from medrax.rag.rag import RAGConfig, CohereRAG
|
| 3 |
+
from langchain.chains import RetrievalQA
|
| 4 |
from typing import Dict, Tuple, Any
|
| 5 |
|
| 6 |
|