patel18 commited on
Commit
ca54725
·
verified ·
1 Parent(s): b5f3472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def get_text_chunk(row_text):
37
 
38
  def get_vectorstore(text_chunk):
39
  #embeddings = OpenAIEmbeddings(openai_api_key = os.getenv("OPENAI_API_KEY"))
40
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
41
  vector = FAISS.from_texts(text_chunk,embeddings)
42
  return vector
43
 
 
37
 
38
  def get_vectorstore(text_chunk):
39
  #embeddings = OpenAIEmbeddings(openai_api_key = os.getenv("OPENAI_API_KEY"))
40
+ embeddings = HuggingFaceInstructEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
41
  vector = FAISS.from_texts(text_chunk,embeddings)
42
  return vector
43