MCPcopy
hub / github.com/PromtEngineer/localGPT / update

Method update

rag_system/utils/batch_processor.py:33–41  ·  view source on GitHub ↗

Update progress with number of items processed

(self, items_processed: int, errors: int = 0)

Source from the content-addressed store, hash-verified

31 self.report_interval = 10 # Report every 10 seconds
32
33 def update(self, items_processed: int, errors: int = 0):
34 """Update progress with number of items processed"""
35 self.processed_items += items_processed
36 self.errors_encountered += errors
37
38 current_time = time.time()
39 if current_time - self.last_report_time >= self.report_interval:
40 self._report_progress()
41 self.last_report_time = current_time
42
43 def _report_progress(self):
44 """Report current progress"""

Callers 9

process_in_batchesMethod · 0.95
process_streamingMethod · 0.95
runMethod · 0.95
start_serviceMethod · 0.45
update_index_metadataMethod · 0.45
handle_create_indexMethod · 0.45
chatMethod · 0.45
chat_streamMethod · 0.45
chunkMethod · 0.45

Calls 1

_report_progressMethod · 0.95

Tested by

no test coverage detected