abyss2009 commited on
Commit
b2cf502
·
verified ·
1 Parent(s): b7a28d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def _load_sources() -> List[Dict[str, str]]:
91
 
92
  DOCS = _load_sources()
93
 
94
- def _retrieve(message: str, top_k: int = 4) -> List[Dict[str, str]]:
95
  if not DOCS:
96
  return []
97
 
@@ -305,7 +305,7 @@ def _ask(message: str, forced_lang_base: Optional[str] = None) -> str:
305
  if forced_lang_base and forced_lang_base != "auto":
306
  system += f"Always answer in the language whose base code is '{forced_lang_base}'.\n"
307
 
308
- retrieved = _retrieve(message, top_k=4)
309
  context = ""
310
  if retrieved:
311
  chunks = []
 
91
 
92
  DOCS = _load_sources()
93
 
94
+ def _retrieve(message: str, top_k: int = 12) -> List[Dict[str, str]]:
95
  if not DOCS:
96
  return []
97
 
 
305
  if forced_lang_base and forced_lang_base != "auto":
306
  system += f"Always answer in the language whose base code is '{forced_lang_base}'.\n"
307
 
308
+ retrieved = _retrieve(message, top_k=12)
309
  context = ""
310
  if retrieved:
311
  chunks = []