mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Adjust num to retrieve
This commit is contained in:
parent
90398f5e56
commit
d2f3e0165a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user