apps/docs/memory-api/features/content-cleaner.mdx
supermemory provides advanced configuration options to customize your content processing pipeline. At its core is an AI-powered system that can automatically analyze, categorize, and filter your content based on your specific needs.
{
"shouldLLMFilter": true,
"categories": ["feature-request", "bug-report", "positive", "negative"],
"filterPrompt": "Analyze feedback sentiment and identify feature requests",
"includeItems": ["critical", "high-priority"],
"excludeItems": ["spam", "irrelevant"]
}
booleanfalse)string[]stringstring[]When content is ingested with LLM filtering enabled:
Initial Processing
AI Analysis
filterPromptChunking & Indexing
{
"shouldLLMFilter": true,
"categories": ["positive", "negative", "neutral"],
"filterPrompt": "Analyze customer sentiment and identify key themes",
}
{
"shouldLLMFilter": true,
"categories": ["safe", "needs-review", "flagged"],
"filterPrompt": "Identify potentially inappropriate or sensitive content",
"excludeItems": ["spam", "offensive"],
"includeItems": ["user-generated"]
}
Important: All filtering features (
categories,filterPrompt,includeItems,excludeItems) requireshouldLLMFilterto be enabled. Attempting to use these features without enablingshouldLLMFilterwill result in a 400 error.