ArturG9 commited on
Commit
bd26a11
1 Parent(s): ba5c96d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,7 +1,15 @@
1
  import os
2
  import streamlit as st
3
  from transformers import pipeline
4
- from langchain import HuggingFaceEmbeddings, CallbackManager, LlamaCpp, TextLoader, create_stuff_documents_chain, create_retrieval_chain, RunnableWithMessageHistory, ChatPromptTemplate, MessagesPlaceholder, StreamlitChatMessageHistory
 
 
 
 
 
 
 
 
5
  from langchain.prompts import PromptTemplate
6
  from langchain.chains.question_answering import load_qa_chain
7
  from langchain.vectorstores import Chroma
 
1
  import os
2
  import streamlit as st
3
  from transformers import pipeline
4
+ from langchain_community.embeddings import HuggingFaceEmbeddings
5
+ from langchain_community.llms import llamacpp
6
+ from langchain_core.runnables.history import RunnableWithMessageHistory
7
+ from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
8
+ from langchain_core.callbacks import CallbackManager, StreamingStdOutCallbackHandler
9
+ from langchain.chains import create_history_aware_retriever, create_retrieval_chain,ConversationalRetrievalChain
10
+ from langchain.document_loaders import TextLoader
11
+ from langchain.chains.combine_documents import create_stuff_documents_chain
12
+ from langchain_community.chat_message_histories.streamlit import StreamlitChatMessageHistory
13
  from langchain.prompts import PromptTemplate
14
  from langchain.chains.question_answering import load_qa_chain
15
  from langchain.vectorstores import Chroma