AjayP13 commited on
Commit
fe606d9
·
verified ·
1 Parent(s): cc3d1b3

Update instruction_template_retriever.py

Browse files
Files changed (1) hide show
  1. instruction_template_retriever.py +2 -0
instruction_template_retriever.py CHANGED
@@ -270,6 +270,8 @@ class InstructionTemplateRetriever:
270
  search_k (int): The number of search results to pull when retrieving from FAISS.
271
  max_results (int): The max number of results to return.
272
  deduplicate (bool): Deduplicate results between coverage sections.
 
 
273
  """
274
 
275
  def _reweight(inp, k=None):
 
270
  search_k (int): The number of search results to pull when retrieving from FAISS.
271
  max_results (int): The max number of results to return.
272
  deduplicate (bool): Deduplicate results between coverage sections.
273
+ reweight (bool): Whether to reweight the results based on a more realistic length distribution.
274
+ reweight_epsilon (float): How tolerant to be when reweighting (larger is more inaccurate results but better reweighting)
275
  """
276
 
277
  def _reweight(inp, k=None):