mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Remove content summary
This commit is contained in:
parent
34980974ac
commit
da81e843d2
@ -2,7 +2,6 @@ import random
|
||||
import time
|
||||
|
||||
from danswer.document_index.vespa.index import _query_vespa
|
||||
from danswer.document_index.vespa.index import CONTENT_SUMMARY
|
||||
from danswer.document_index.vespa.index import VespaIndex
|
||||
|
||||
question_bank = [
|
||||
@ -113,11 +112,12 @@ additional_questions = [
|
||||
|
||||
|
||||
def _measure_vespa_latency(filters: dict = {}):
|
||||
yql = (
|
||||
VespaIndex.yql_base
|
||||
+ '({grammar: "weakAnd"}userInput(@query) '
|
||||
+ f'or ({{defaultIndex: "{CONTENT_SUMMARY}"}}userInput(@query)))'
|
||||
)
|
||||
# yql = (
|
||||
# VespaIndex.yql_base
|
||||
# + '({grammar: "weakAnd"}userInput(@query) '
|
||||
# + f'or ({{defaultIndex: "{CONTENT_SUMMARY}"}}userInput(@query)))'
|
||||
# )
|
||||
yql = VespaIndex.yql_base + '({grammar: "weakAnd"}userInput(@query))'
|
||||
query = random.choice(additional_questions)
|
||||
num_to_retrieve = 50
|
||||
params: dict[str, str | int] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user