Ritesh-hf commited on
Commit
85c33d6
1 Parent(s): 75cb715

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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