mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 03:58:30 +02:00
Improve Vespa filtering performance
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user