alexkueck commited on
Commit
7a812ee
·
verified ·
1 Parent(s): e8be9f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -12,17 +12,14 @@ from PyPDF2 import PdfReader, PdfWriter
12
 
13
 
14
  from langchain.chains import LLMChain, RetrievalQA
15
- from langchain.document_loaders import PyPDFLoader, WebBaseLoader, UnstructuredWordDocumentLoader, DirectoryLoader
16
  from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader
17
- from langchain.document_loaders.generic import GenericLoader
18
- from langchain.document_loaders.parsers import OpenAIWhisperParser
19
  from langchain.schema import AIMessage, HumanMessage
20
  from langchain.llms import HuggingFaceHub
21
  from langchain.llms import HuggingFaceTextGenInference
22
  from langchain_community.embeddings import HuggingFaceInstructEmbeddings, HuggingFaceEmbeddings, HuggingFaceBgeEmbeddings, HuggingFaceInferenceAPIEmbeddings
23
- from langchain.retrievers.tavily_search_api import TavilySearchAPIRetriever
24
 
25
- from langchain.embeddings.openai import OpenAIEmbeddings
26
  from langchain.prompts import PromptTemplate
27
  from langchain.text_splitter import RecursiveCharacterTextSplitter
28
  from langchain_community.vectorstores import Chroma
 
12
 
13
 
14
  from langchain.chains import LLMChain, RetrievalQA
15
+ from langchain.document_loaders import PyPDFLoader, UnstructuredWordDocumentLoader, DirectoryLoader
16
  from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader
17
+ from langchain.document_loaders import GenericLoader
 
18
  from langchain.schema import AIMessage, HumanMessage
19
  from langchain.llms import HuggingFaceHub
20
  from langchain.llms import HuggingFaceTextGenInference
21
  from langchain_community.embeddings import HuggingFaceInstructEmbeddings, HuggingFaceEmbeddings, HuggingFaceBgeEmbeddings, HuggingFaceInferenceAPIEmbeddings
 
22
 
 
23
  from langchain.prompts import PromptTemplate
24
  from langchain.text_splitter import RecursiveCharacterTextSplitter
25
  from langchain_community.vectorstores import Chroma