sudongpo commited on
Commit
4b6a88b
·
verified ·
1 Parent(s): 8ab4b01

Update readme

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -75,9 +75,9 @@ class LLMEmbeddingModel():
75
 
76
  query_instruction = "Given a search query, retrieve passages that answer the question"
77
  if query_instruction:
78
- self.query_instruction = f"Instruction: {query_instruction} \nQuery: "
79
  else:
80
- self.query_instruction = "Query: "
81
 
82
  self.doc_instruction = ""
83
  print(f"query instruction: {[self.query_instruction]}\ndoc instruction: {[self.doc_instruction]}")
@@ -210,7 +210,7 @@ embedder = HuggingFaceEmbeddings(
210
  model_kwargs=model_kwargs,
211
  )
212
 
213
- query_instruction = "Instruction: Given a search query, retrieve passages that answer the question \nQuery: "
214
  doc_instruction = ""
215
 
216
  data = [
@@ -259,7 +259,7 @@ embeddings = HuggingFaceEmbedding(
259
  model_name=model_name_or_path,
260
  trust_remote_code=True,
261
  device=device,
262
- query_instruction="Instruction: Given a search query, retrieve passages that answer the question \nQuery: ",
263
  text_instruction=""
264
  )
265
 
 
75
 
76
  query_instruction = "Given a search query, retrieve passages that answer the question"
77
  if query_instruction:
78
+ self.query_instruction = f"Instruction: {query_instruction} \nQuery:"
79
  else:
80
+ self.query_instruction = "Query:"
81
 
82
  self.doc_instruction = ""
83
  print(f"query instruction: {[self.query_instruction]}\ndoc instruction: {[self.doc_instruction]}")
 
210
  model_kwargs=model_kwargs,
211
  )
212
 
213
+ query_instruction = "Instruction: Given a search query, retrieve passages that answer the question \nQuery:"
214
  doc_instruction = ""
215
 
216
  data = [
 
259
  model_name=model_name_or_path,
260
  trust_remote_code=True,
261
  device=device,
262
+ query_instruction="Instruction: Given a search query, retrieve passages that answer the question \nQuery:",
263
  text_instruction=""
264
  )
265