mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-03 05:34:03 +02:00
More efficient Vespa indexing (#3552)
--------- Co-authored-by: Chris Weaver <25087905+Weves@users.noreply.github.com>
This commit is contained in:
@@ -86,6 +86,7 @@ def _create_indexable_chunks(
|
||||
access=default_public_access,
|
||||
document_sets=set(),
|
||||
boost=DEFAULT_BOOST,
|
||||
current_index_time=datetime.datetime.now(datetime.timezone.utc),
|
||||
)
|
||||
chunks.append(chunk)
|
||||
|
||||
@@ -217,7 +218,7 @@ def seed_initial_documents(
|
||||
# as we just sent over the Vespa schema and there is a slight delay
|
||||
|
||||
index_with_retries = retry_builder(tries=15)(document_index.index)
|
||||
index_with_retries(chunks=chunks, fresh_index=cohere_enabled)
|
||||
index_with_retries(chunks=chunks)
|
||||
|
||||
# Mock a run for the UI even though it did not actually call out to anything
|
||||
mock_successful_index_attempt(
|
||||
|
Reference in New Issue
Block a user