run black

This commit is contained in:
pablodanswer
2024-12-11 19:18:06 -08:00
parent 34e250407a
commit a45724c899
2 changed files with 4 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ class Indexable(abc.ABC):
"""
Class must implement the ability to index document chunks
"""
@abc.abstractmethod
def index(
self,

View File

@@ -326,7 +326,9 @@ class VespaIndex(DocumentIndex):
if not fresh_index:
# Check for existing documents, existing documents need to have all of their chunks deleted
# prior to indexing as the document size (num chunks) may have shrunk
first_chunks = [chunk for chunk in cleaned_chunks if chunk.chunk_id == 0]
first_chunks = [
chunk for chunk in cleaned_chunks if chunk.chunk_id == 0
]
for chunk_batch in batch_generator(first_chunks, BATCH_SIZE):
existing_docs.update(
get_existing_documents_from_chunks(