Allow sending custom metadata to Vragen.ai
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3548383. -->
Reported by: [jelleglebbeek](https://www.drupal.org/user/3729474)
Related to !5 !4
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Vragen.ai supports sending metadata that will be attached to the indexed document. In an upcoming feature this attached metadata can be returned in search results. As such we should be able to configure certain SAPI index fields/properties to be passed to Vragen.ai as metadata.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Index content to Vragen.ai</li>
<li>Only published date and author are filled in the metadata, if we can find those fields.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a SAPI datatype for Vragen.ai metadata. Then in the Vragen.ai back-end check for this datatype and attach it to the metadata instead of the document content itself.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Not applicable. All tasks completed.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>Adds a new data type to SAPI fields.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>Will now send additional properties under the meta_data key to Vragen.ai</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>Not applicable.</p>
issue