ErikH commited on
Commit
a9e1591
1 Parent(s): 171a569

Update pages/bot.py

Browse files
Files changed (1) hide show
  1. pages/bot.py +2 -2
pages/bot.py CHANGED
@@ -55,7 +55,7 @@ def create_vectorstore_and_store():
55
  folder_path = './files'
56
  pdf_text = get_pdf_text(folder_path)
57
  text_chunks = get_text_chunks(pdf_text)
58
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-base")
59
  #embeddings = HuggingFaceInstructEmbeddings(model_name="aari1995/German_Semantic_STS_V2")
60
  # Initiate Faiss DB
61
  vectorstoreDB = FAISS.from_texts(texts=text_chunks,embedding=embeddings)#texts=text_chunks,
@@ -69,7 +69,7 @@ def create_vectorstore_and_store():
69
  ########
70
 
71
  def get_vectorstore():
72
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-base")
73
  #embeddings = HuggingFaceInstructEmbeddings(model_name="aari1995/German_Semantic_STS_V2")
74
  #Abruf lokaler Vektordatenbank
75
  save_directory = "Store"
 
55
  folder_path = './files'
56
  pdf_text = get_pdf_text(folder_path)
57
  text_chunks = get_text_chunks(pdf_text)
58
+ embeddings = HuggingFaceInstructEmbeddings(model_name="deutsche-telekom/bert-multi-english-german-squad2")
59
  #embeddings = HuggingFaceInstructEmbeddings(model_name="aari1995/German_Semantic_STS_V2")
60
  # Initiate Faiss DB
61
  vectorstoreDB = FAISS.from_texts(texts=text_chunks,embedding=embeddings)#texts=text_chunks,
 
69
  ########
70
 
71
  def get_vectorstore():
72
+ embeddings = HuggingFaceInstructEmbeddings(model_name="deutsche-telekom/bert-multi-english-german-squad2")
73
  #embeddings = HuggingFaceInstructEmbeddings(model_name="aari1995/German_Semantic_STS_V2")
74
  #Abruf lokaler Vektordatenbank
75
  save_directory = "Store"