[Error] The Prompt is unsafe: The prompt was flagged by the moderation model. It is stopping the Search API indexation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3526710. -->
Reported by: [gxleano](https://www.drupal.org/user/3591999)
Related to !633
>>>
<h3 id="summary-problem-motivation">Problem / Motivation</h3>
<p>When indexing content from the Search API using VDB, if any content is flagged as unsafe, the entire indexing process is halted. This can disrupt operations and prevent the successful indexing of valid, safe content.</p>
<p>Evidences:<br>
<img src="https://www.drupal.org/files/issues/2025-05-27/Screenshot%202025-05-27%20at%2018.52.20.png" alt="AI Error"></p>
<p><img src="https://www.drupal.org/files/issues/2025-05-27/Screenshot%202025-05-27%20at%2018.53.39.png" alt="AI Error 2"></p>
<h3 id="summary-proposed-resolution">Proposed Resolution</h3>
<p>Rather than stopping the indexing process entirely when unsafe content is encountered, the system should simply skip the unsafe content and continue indexing the remaining valid items.</p>
issue