Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,12 @@ from langchain import hub
|
|
22 |
import pickle
|
23 |
import os
|
24 |
from langchain_community.retrievers import PineconeHybridSearchRetriever
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
# Load environment variables
|
|
|
22 |
import pickle
|
23 |
import os
|
24 |
from langchain_community.retrievers import PineconeHybridSearchRetriever
|
25 |
+
from langchain.chains import create_history_aware_retriever, create_retrieval_chain
|
26 |
+
from langchain.chains.combine_documents import create_stuff_documents_chain
|
27 |
+
from langchain_community.chat_message_histories import ChatMessageHistory
|
28 |
+
from langchain_core.chat_history import BaseChatMessageHistory
|
29 |
+
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
30 |
+
from langchain_core.runnables.history import RunnableWithMessageHistory
|
31 |
|
32 |
|
33 |
# Load environment variables
|