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

Method doc_to_target

test/general/lm_eval/tasks/babi.py:56–57  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

54 return f"Passage: {doc['passage']}\nQuestion: {doc['question']}\nAnswer:"
55
56 def doc_to_target(self, doc):
57 return " " + doc['answer']
58
59 def construct_requests(self, doc, ctx):
60 """Uses RequestFactory to construct Requests and returns an iterable of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected