Unsafe content prevents site from indexing in AI Search

Created on 24 March 2025, 10 days ago

When indexing content via Search AI using AI Search (Milvus VDB), content that triggers the "unsafe" AI moderation causes the error in the logs:

Drupal\ai\Exception\AiUnsafePromptException: The prompt was flagged by the moderation model

and it blocks the rest of the indexing. Instead of aborting the entire indexing operation, this issue should be logged, along with the node ID of the offending content, but the rest of the content should continue to be indexed.

πŸ› Bug report
Status

Active

Version

1.0

Component

AI Search

Created by

πŸ‡ΊπŸ‡ΈUnited States mpotter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024