mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-01 10:10:49 +02:00
More efficient Vespa indexing (#3552)
--------- Co-authored-by: Chris Weaver <25087905+Weves@users.noreply.github.com>
This commit is contained in:
@ -10,6 +10,7 @@ Then run test_query_times.py to test query times.
|
||||
"""
|
||||
import random
|
||||
from datetime import datetime
|
||||
from datetime import timezone
|
||||
|
||||
from onyx.access.models import DocumentAccess
|
||||
from onyx.configs.constants import DocumentSource
|
||||
@ -96,6 +97,7 @@ def generate_dummy_chunk(
|
||||
document_sets={document_set for document_set in document_set_names},
|
||||
boost=random.randint(-1, 1),
|
||||
tenant_id=POSTGRES_DEFAULT_SCHEMA,
|
||||
current_index_time=datetime.now(tz=timezone.utc),
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user