Adjust num to retrieve

This commit is contained in:
Weves 2023-10-30 16:04:58 -07:00
parent 90398f5e56
commit d2f3e0165a
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ schema danswer_chunk {
global-phase {
expression: (normalize_linear(closeness(field, embeddings)) + normalize_linear(bm25(content))) / 2 * document_boost * recency_bias
rerank-count: 1000
rerank-count: 250
}
# Cannot pass normalize_linear features in match-features

View File

@ -674,7 +674,7 @@ class VespaIndex(DocumentIndex):
decay_multiplier = FAVOR_RECENT_DECAY_MULTIPLIER if favor_recent else 1
vespa_where_clauses = _build_vespa_filters(filters)
# Needs to be at least as much as the value set in Vespa schema config
target_hits = max(10 * num_to_retrieve, 1000)
target_hits = max(10 * num_to_retrieve, 250)
yql = (
VespaIndex.yql_base
+ vespa_where_clauses