Method
value_preprocess
(self, solvers: List[BaseTree])
Source from the content-addressed store, hash-verified
| 174 | return updated_solvers |
| 175 | |
| 176 | def value_preprocess(self, solvers: List[BaseTree]) -> Tuple[List[str], List[int]]: |
| 177 | prompts = [] |
| 178 | prompts_span = [0] |
| 179 | |
| 180 | for solver in solvers: |
| 181 | solver_prompts = solver.create_prompt(is_value_only=True) |
| 182 | prompts.extend(solver_prompts) |
| 183 | prompts_span.append(prompts_span[-1] + len(solver_prompts)) |
| 184 | return prompts, prompts_span |
| 185 | |
| 186 | def value_postprocess( |
| 187 | self, |
Tested by
no test coverage detected