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

Method construct_requests

test/general/lm_eval/tasks/superglue.py:328–333  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

326 return self.format_answer(query=doc["query"], entity=doc["answers"][0])
327
328 def construct_requests(self, doc, ctx):
329 requests = [
330 rf.loglikelihood(ctx, self.format_answer(query=doc["query"], entity=entity))
331 for entity in doc["entities"]
332 ]
333 return requests
334
335 def process_results(self, doc, results):
336 # ReCoRD's evaluation is actually deceptively simple:

Callers

nothing calls this directly

Calls 2

format_answerMethod · 0.95
loglikelihoodMethod · 0.45

Tested by

no test coverage detected