MCPcopy Create free account
hub / github.com/Eladlev/AutoPrompt / process_sample_with_progress

Method process_sample_with_progress

utils/llm_chain.py:135–138  ·  view source on GitHub ↗
(sample)

Source from the content-addressed store, hash-verified

133 yield sample
134
135 def process_sample_with_progress(sample):
136 result = self.invoke(sample)
137 pbar.update(1) # Update the progress bar
138 return result
139
140 if not ('async_params' in self.llm_config.keys()): # non async mode, use regular workers
141 with concurrent.futures.ThreadPoolExecutor(max_workers=num_workers) as executor:

Callers

nothing calls this directly

Calls 2

invokeMethod · 0.95
updateMethod · 0.80

Tested by

no test coverage detected