This commit is contained in:
Weves 2023-11-03 00:25:42 -07:00
parent d5d7772524
commit 4cc0697b66
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -484,7 +484,7 @@ class VespaIndex(DocumentIndex):
f"{HIDDEN}, "
f"{DOC_UPDATED_AT}, "
f"{METADATA} "
# f"{CONTENT_SUMMARY} "
f"{CONTENT_SUMMARY} "
f"from {DOCUMENT_INDEX_NAME} where "
)
@ -690,7 +690,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, 250)
target_hits = max(10 * num_to_retrieve, 1000)
yql = (
VespaIndex.yql_base
+ vespa_where_clauses