{"record":{"id":"104dacbea1c5efab","repo":"tensorflow/models","slug":"unknown-evidence-source-info-source","errorCode":null,"errorMessage":"Unknown evidence source: {info.source}.","messagePattern":"Unknown evidence source: (.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/triviaqa/preprocess.py","lineNumber":241,"sourceCode":"\n\nclass ReadEvidence(beam.DoFn):\n  \"\"\"Function to read evidence.\"\"\"\n\n  def __init__(self, wikipedia_dir: Text, web_dir: Text):\n    self._wikipedia_dir = wikipedia_dir\n    self._web_dir = web_dir\n\n  def process(\n      self, question_answer: QuestionAnswer\n  ) -> Generator[QuestionAnswerEvidence, None, None]:\n    for info in question_answer.evidence_info:\n      if info.source == 'EntityPages':\n        evidence_path = os.path.join(self._wikipedia_dir, info.id)\n      elif info.source == 'SearchResult':\n        evidence_path = os.path.join(self._web_dir, info.id)\n      else:\n        raise ValueError(f'Unknown evidence source: {info.source}.')\n      with gfile.GFile(evidence_path, 'rb') as f:\n        text = f.read().decode('utf-8')\n      metrics.Metrics.counter('_', 'documents').inc()\n      yield QuestionAnswerEvidence(\n          question=question_answer.question,\n          evidence=Evidence(info=info, text=text),\n          answer=question_answer.answer)\n\n\n_CLS_PIECE = '<ans>'\n_EOS_PIECE = '</s>'\n_SEP_PIECE = '<sep_0>'\n# _PARAGRAPH_SEP_PIECE = '<sep_1>'\n_NULL_PIECE = '<empty>'\n_QUESTION_PIECE = '<unused_34>'\n\n\nclass MakeFeatures(beam.DoFn):","sourceCodeStart":223,"sourceCodeEnd":259,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/triviaqa/preprocess.py#L223-L259","documentation":"Error \"Unknown evidence source: {info.source}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/triviaqa/preprocess.py:241 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}