dinhquangson commited on
Commit
41269ff
·
verified ·
1 Parent(s): e5228b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -86,6 +86,8 @@ def get_vectorstore(text_chunks):
86
  embeddings = HuggingFaceBgeEmbeddings(
87
  model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
88
  )
 
 
89
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
90
  return vectorstore
91
 
 
86
  embeddings = HuggingFaceBgeEmbeddings(
87
  model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
88
  )
89
+ print("length of text_chunks:"+str(len(text_chunks)))
90
+ print("length of embeddings:"+str(len(embeddings)))
91
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
92
  return vectorstore
93