def read_jsonl(jsonl_filenames: Union[str, Iterable[str]]) -> Iterator[Example]:
  """Yields entries from the JSONL files."""
  if isinstance(jsonl_filenames, str):
    jsonl_filenames = [jsonl_filenames]
  for filename in jsonl_filenames:
    with tf.io.gfile.GFile(filename) as fin:
      for line in fin:
        entry = json.loads(line)
        yield entry
Yields entries from the JSONL files.
language/casper/retrieve/query_retrievers.py