File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,16 @@ def batch(
123
123
"""
124
124
Processes a list of dspy.Example instances in parallel using the Parallel module.
125
125
126
- :param examples: List of dspy.Example instances to process.
127
- :param num_threads: Number of threads to use for parallel processing.
128
- :param max_errors: Maximum number of errors allowed before stopping execution.
129
- :param return_failed_examples: Whether to return failed examples and exceptions.
130
- :param provide_traceback: Whether to include traceback information in error logs.
131
- :return: List of results, and optionally failed examples and exceptions.
126
+ Args:
127
+ examples: List of dspy.Example instances to process.
128
+ num_threads: Number of threads to use for parallel processing.
129
+ max_errors: Maximum number of errors allowed before stopping execution.
130
+ return_failed_examples: Whether to return failed examples and exceptions.
131
+ provide_traceback: Whether to include traceback information in error logs.
132
+ disable_progress_bar: Whether to display the progress bar.
133
+
134
+ Returns:
135
+ List of results, and optionally failed examples and exceptions.
132
136
"""
133
137
# Create a list of execution pairs (self, example)
134
138
exec_pairs = [(self , example .inputs ()) for example in examples ]
You can’t perform that action at this time.
0 commit comments