Update main.py
Browse files
main.py
CHANGED
@@ -11,7 +11,8 @@ from langchain.schema import StrOutputParser
|
|
11 |
from operator import itemgetter
|
12 |
from pinecone import Pinecone
|
13 |
from langchain_pinecone import PineconeVectorStore
|
14 |
-
from
|
|
|
15 |
from langchain.schema.runnable import Runnable, RunnablePassthrough, RunnableConfig, RunnableLambda
|
16 |
from langchain.callbacks.base import BaseCallbackHandler
|
17 |
from langchain.chains import ConversationalRetrievalChain
|
|
|
11 |
from operator import itemgetter
|
12 |
from pinecone import Pinecone
|
13 |
from langchain_pinecone import PineconeVectorStore
|
14 |
+
from langchain_community.chat_message_histories import ChatMessageHistory
|
15 |
+
from langchain.memory import ConversationBufferMemory
|
16 |
from langchain.schema.runnable import Runnable, RunnablePassthrough, RunnableConfig, RunnableLambda
|
17 |
from langchain.callbacks.base import BaseCallbackHandler
|
18 |
from langchain.chains import ConversationalRetrievalChain
|