{"ref":"capability:content-filtering","page":"/capabilities/content-filtering","json":"/capabilities/content-filtering.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"content-filtering","name":"Content filtering","domain":"ai-and-agents","ecosystems":["btp","cap"],"universal":true,"description":"Checking what goes into a model and what comes out of it against content rules, and stopping or flagging a request that fails them. Distinct from [data masking](capability:data-masking), which hides values: a filter refuses content.","short":"Checking model input and output against content rules","core_coverage":{"state":"core-only","assessed_at":"2026-09-14","what_core_does":"A module of the orchestration service in [SAP AI Core](artifact:btp-ai-core), run on the input and on the output separately; SAP names hateful, violent, sexual and vulgar content as the categories.","where_it_stops":"At those categories and those two points. Prompt injection, a tool result that lies and whether an answer is right are not content filtering; the first of them sits with [tool governance](capability:tool-governance).","sources":[{"url":"https://btp-ai-bp.docs.sap/docs/technical-view/generative-ai/plain/content-filtering","title":"Content Filtering — SAP BTP AI Best Practices","checked":"2026-09-14","quote":"AI Core provides content filtering for hateful, violent, sexual and vulgar content through input and output filtering"},{"url":"https://btp-ai-bp.docs.sap/docs/technology/sap-ai-launchpad","title":"SAP AI Launchpad — SAP BTP AI Best Practices, Technologies","checked":"2026-09-14","quote":"This feature allows you to restrict the type of content passed to and received from a generative AI model."}],"note":"Every provider behind this door is SAP's, so core-only is a assessment of the corpus rather than a quote from the core."},"coverage_by_ecosystem":{"cap":{"state":"core-only","assessed_at":"2026-09-14","what_core_does":"[@sap-ai-sdk/orchestration](artifact:sap-ai-sdk-orchestration) exposes the same input and output filters to a Node.js or CAP service, as part of each orchestration configuration.","where_it_stops":"At the SDK call, which is the same boundary as the service's.","sources":[{"url":"https://sap.github.io/ai-sdk/docs/js/orchestration/chat-completion","title":"Orchestration Chat Completion — SAP Cloud SDK for AI (JavaScript)","checked":"2026-09-14","quote":"Additionally, it provides features like templating, content filtering, grounding and more to enhance the interaction with generative AI models."}]}},"drafted_with_ai":true},"sap_delivery":{"door":"btp","all":{"built_in":[],"documented_pattern":[],"announced":[],"packages":[{"ref":"artifact:btp-ai-core","name":"SAP AI Core","json":"/artifacts/btp-ai-core.json"}]},"by_flavor":{}},"edges":{"use_cases":[],"shared_tasks":[],"related_tasks":[],"options":[{"ref":"artifact:sap-ai-sdk-orchestration","name":"@sap-ai-sdk/orchestration","json":"/artifacts/sap-ai-sdk-orchestration.json","ecosystem":"cap","origin_ring":"sap-official"},{"ref":"artifact:btp-ai-core","name":"SAP AI Core","json":"/artifacts/btp-ai-core.json","ecosystem":"btp","origin_ring":"sap-official"}],"samples":[{"ref":"artifact:sap-samples-btp-ai-bp-content-filtering-cap","name":"SAP BTP AI Best Practice Demo - Content Filtering - CAP","json":"/artifacts/sap-samples-btp-ai-bp-content-filtering-cap.json"},{"ref":"artifact:sap-samples-sap-btp-ai-best-practices","name":"sap-btp-ai-best-practices","json":"/artifacts/sap-samples-sap-btp-ai-best-practices.json"}],"explained_by":[{"ref":"content:btp-ai-bp-content-filtering","name":"Content Filtering","json":"/content/btp-ai-bp-content-filtering.json"}],"normative_context":[]}}