Add support for rerank operation type
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3488114. -->
Reported by: [lussoluca](https://www.drupal.org/user/138068)
Related to !278
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>A semantic search response precision can be enhanced by a rerank algorithm.<br>
Some providers exist that provide document re-ranking, or a specific query can be sent to a general-purpose LLM to ask for a re-rank</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a new ReRank operation type</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Review the MR</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None</p>
<h3 id="summary-api-changes">API changes</h3>
<p>A new operation type called 'rerank' that can be implemented in AI providers</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None</p>
issue