MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / doc_to_text

Method doc_to_text

test/general/lm_eval/tasks/scrolls.py:200–201  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

198 return " " + ", ".join(doc["outputs"])
199
200 def doc_to_text(self, doc):
201 return f"{doc['text']}\n\nQuestion: {doc['question']}\nAnswer:"
202
203 def higher_is_better(self):
204 return {x: True for x in self._scrolls_metrics().keys()}

Callers 1

_get_prune_textMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected