d">    &gt;&gt;&gt; pipeline = Pipeline().setStages([</span>
<span class="sd">    ...     documentAssembler,</span>
<span class="sd">    ...     embeddings,</span>
<span class="sd">    ...     embeddingsFinisher</span>
<span class="sd">    ... ])</span>
<span class="sd">    &gt;&gt;&gt; data = spark.createDataFrame([[&quot;query: how much protein should a female eat&quot;,</span>
<span class="sd">    ... &quot;passage: As a general guideline, the CDC&#39;s average requirement of protein for women ages 19 to