MCPcopy Create free account
hub / github.com/SamuelSchmidgall/AgentLaboratory / process_docs

Function process_docs

utils.py:246–255  ·  view source on GitHub ↗
(dataset: datasets.Dataset)

Source from the content-addressed store, hash-verified

244
245
246def process_docs(dataset: datasets.Dataset) -> datasets.Dataset:
247 def _process_doc(doc: dict) -> dict:
248 out_doc = {
249 "problem": doc["problem"],
250 "solution": doc["solution"],
251 "answer": remove_boxed(last_boxed_only_string(doc["solution"])),
252 }
253 return out_doc
254
255 return dataset.map(_process_doc)
256
257
258def process_results(doc: dict, results: List[str]) -> Dict[str, int]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected