Improve Vespa filtering performance

This commit is contained in:
Weves
2023-11-15 14:26:00 -08:00
committed by Chris Weaver
parent a03e443541
commit 0ed8f14015

View File

@@ -31,6 +31,8 @@ schema danswer_chunk {
# https://docs.vespa.ai/en/attributes.html potential enum store for speed, but probably not worth it # https://docs.vespa.ai/en/attributes.html potential enum store for speed, but probably not worth it
field source_type type string { field source_type type string {
indexing: summary | attribute indexing: summary | attribute
rank: filter
attribute: fast-search
} }
# Can also index links https://docs.vespa.ai/en/reference/schema-reference.html#attribute # Can also index links https://docs.vespa.ai/en/reference/schema-reference.html#attribute
# URL type matching # URL type matching
@@ -61,6 +63,7 @@ schema danswer_chunk {
} }
field hidden type bool { field hidden type bool {
indexing: summary | attribute indexing: summary | attribute
rank: filter
} }
field metadata type string { field metadata type string {
indexing: summary | attribute indexing: summary | attribute
@@ -82,10 +85,12 @@ schema danswer_chunk {
} }
field access_control_list type weightedset<string> { field access_control_list type weightedset<string> {
indexing: summary | attribute indexing: summary | attribute
rank: filter
attribute: fast-search attribute: fast-search
} }
field document_sets type weightedset<string> { field document_sets type weightedset<string> {
indexing: summary | attribute indexing: summary | attribute
rank: filter
attribute: fast-search attribute: fast-search
} }
} }