Spaces:
Runtime error
Runtime error
Commit
Β·
f953e7d
1
Parent(s):
eb2915c
increase context length
Browse files
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,
|
231 |
-
context_lim = st.slider('Context limit? How many documents to use for answering from. Larger is slower but higher quality', 10, 300,
|
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)
|