ark.ml import Pipeline</span>
<span class="sd">    &gt;&gt;&gt; documentAssembler = DocumentAssembler() \\</span>
<span class="sd">    ...     .setInputCol(&quot;text&quot;) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;document&quot;)</span>
<span class="sd">    &gt;&gt;&gt; embeddings = MiniLMEmbeddings.pretrained() \\</span>
<span class="sd">    ...     .setInputCols([&quot;document&quot;]) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;minilm_embeddings&quot;)</span>
<span class