ahyar002 commited on
Commit
5744f83
1 Parent(s): 40df0f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ def get_text_chuks(raw_text):
30
  return chunks
31
 
32
  def get_vector_store(text_chunks):
33
- # embeddings = OpenAIEmbeddings()
34
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
35
  vector_store = FAISS.from_texts(text_chunks, embeddings)
36
  return vector_store
37
 
 
30
  return chunks
31
 
32
  def get_vector_store(text_chunks):
33
+ embeddings = OpenAIEmbeddings()
34
+ # embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
35
  vector_store = FAISS.from_texts(text_chunks, embeddings)
36
  return vector_store
37