class_docstr: DatasetBuilder for beir dataset.
class_docstr_tok: ["DatasetBuilder","for","beir","dataset","."]
docstr: Generates examples for query split.
docstr_tok: ["Generates","examples","for","query","split","."]
code: def _generate_query_examples(self, pipeline):
      """Generates examples for query split."""
      beam = tfds.core.lazy_imports.apache_beam
      return (
          pipeline
          | "AddEmptyFeatures"
          >> beam.Map(
              functools.partial(
                  _append_constant_features,
                  mapping={
                      "passage_id": "",
                      "passage": "",
                      "passage_metadata": "{}",
                      "score": -1,
                  },
              )
          )
          | "GetHashKey" >> beam.Map(lambda x: (_get_hash(x), x))
      )
  
imports: from __future__ import annotations
  import functools
  import json
  import os
  from typing import Mapping
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_query_examples(pipeline) and returns: unknown