MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / process_example

Function process_example

camel/benchmarks/ragbench.py:55–60  ·  view source on GitHub ↗
(example: Dict[str, Any])

Source from the content-addressed store, hash-verified

53 """
54
55 def process_example(example: Dict[str, Any]) -> Dict[str, Any]:
56 if context_call:
57 example["contexts"] = context_call(example)
58 if answer_call:
59 example["answer"] = answer_call(example)
60 return example
61
62 return dataset.map(process_example)
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected