mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-12 13:59:35 +02:00
Standard
This commit is contained in:
parent
d5d7772524
commit
4cc0697b66
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user