domenicrosati commited on
Commit
f953e7d
Β·
1 Parent(s): eb2915c

increase context length

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -227,8 +227,8 @@ with st.expander("Settings (strictness, context limit, top hits)"):
227
  use_reranking = st.radio(
228
  "Use Reranking? Reranking will rerank the top hits using semantic similarity of document and query.",
229
  ('yes', 'no'))
230
- top_hits_limit = st.slider('Top hits? How many documents to use for reranking. Larger is slower but higher quality', 10, 300, 10)
231
- context_lim = st.slider('Context limit? How many documents to use for answering from. Larger is slower but higher quality', 10, 300, 5)
232
 
233
  # def paraphrase(text, max_length=128):
234
  # input_ids = queryexp_tokenizer.encode(text, return_tensors="pt", add_special_tokens=True)
 
227
  use_reranking = st.radio(
228
  "Use Reranking? Reranking will rerank the top hits using semantic similarity of document and query.",
229
  ('yes', 'no'))
230
+ top_hits_limit = st.slider('Top hits? How many documents to use for reranking. Larger is slower but higher quality', 10, 300, 100)
231
+ context_lim = st.slider('Context limit? How many documents to use for answering from. Larger is slower but higher quality', 10, 300, 25)
232
 
233
  # def paraphrase(text, max_length=128):
234
  # input_ids = queryexp_tokenizer.encode(text, return_tensors="pt", add_special_tokens=True)