alexkueck commited on
Commit
fc3dadb
·
verified ·
1 Parent(s): 424fbd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,7 +17,7 @@ from hugchat.login import Login
17
  from tavily import TavilyClient
18
 
19
  from langchain.chains import LLMChain, RetrievalQA
20
- from langchain.chat_models import ChatOpenAI
21
  from langchain.document_loaders import PyPDFLoader, WebBaseLoader, UnstructuredWordDocumentLoader, DirectoryLoader
22
  from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader
23
  from langchain.document_loaders.generic import GenericLoader
@@ -25,10 +25,10 @@ from langchain.document_loaders.parsers import OpenAIWhisperParser
25
  from langchain.schema import AIMessage, HumanMessage
26
  from langchain.llms import HuggingFaceHub
27
  from langchain.llms import HuggingFaceTextGenInference
28
- from langchain.embeddings import HuggingFaceInstructEmbeddings, HuggingFaceEmbeddings, HuggingFaceBgeEmbeddings, HuggingFaceInferenceAPIEmbeddings
29
  from langchain.retrievers.tavily_search_api import TavilySearchAPIRetriever
30
 
31
- from langchain.embeddings.openai import OpenAIEmbeddings
32
  from langchain.prompts import PromptTemplate
33
  from langchain.text_splitter import RecursiveCharacterTextSplitter
34
  from langchain.vectorstores import Chroma
 
17
  from tavily import TavilyClient
18
 
19
  from langchain.chains import LLMChain, RetrievalQA
20
+ from langchain_openai import ChatOpenAI
21
  from langchain.document_loaders import PyPDFLoader, WebBaseLoader, UnstructuredWordDocumentLoader, DirectoryLoader
22
  from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader
23
  from langchain.document_loaders.generic import GenericLoader
 
25
  from langchain.schema import AIMessage, HumanMessage
26
  from langchain.llms import HuggingFaceHub
27
  from langchain.llms import HuggingFaceTextGenInference
28
+ from langchain_community.embeddings import HuggingFaceInstructEmbeddings, HuggingFaceEmbeddings, HuggingFaceBgeEmbeddings, HuggingFaceInferenceAPIEmbeddings
29
  from langchain.retrievers.tavily_search_api import TavilySearchAPIRetriever
30
 
31
+ from langchain_openai import OpenAIEmbeddings
32
  from langchain.prompts import PromptTemplate
33
  from langchain.text_splitter import RecursiveCharacterTextSplitter
34
  from langchain.vectorstores import Chroma