quantamentalfinance commited on
Commit
8d7baef
1 Parent(s): 1a4d59d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,13 +10,13 @@ import json
10
  # for tokenizing texts and splitting them into chunks of documents
11
  from langchain.text_splitter import RecursiveCharacterTextSplitter
12
  # for turning documents into embeddings before putting them in vector store
13
- from langchain.embeddings import HuggingFaceEmbeddings
14
  # for vector store for documents
15
- from langchain.vectorstores import Chroma
16
 
17
  ### 3. For Querying LLM
18
  # for loading HuggingFace LLM models from the hub
19
- from langchain.llms import HuggingFaceHub
20
  # for querying LLM conveniently using the context
21
  from langchain.chains.question_answering import load_qa_chain
22
 
 
10
  # for tokenizing texts and splitting them into chunks of documents
11
  from langchain.text_splitter import RecursiveCharacterTextSplitter
12
  # for turning documents into embeddings before putting them in vector store
13
+ from langchain_community.embeddings import HuggingFaceEmbeddings
14
  # for vector store for documents
15
+ from langchain_community.vectorstores import Chroma
16
 
17
  ### 3. For Querying LLM
18
  # for loading HuggingFace LLM models from the hub
19
+ from langchain_community.llms import HuggingFaceHub
20
  # for querying LLM conveniently using the context
21
  from langchain.chains.question_answering import load_qa_chain
22