Property ExtractionPrompt
ExtractionPrompt
Gets or sets custom extraction guidance that controls what types of information the extractor identifies and stores.
public string ExtractionPrompt { get; set; }
Property Value
- string
A set of rules or hints provided to the LLM during extraction. When
null, the built-in default guidance is used.
Examples
Example: Custom extraction guidance
memory.ExtractionPrompt =
"Only extract facts about user identity, preferences, and relationships.\n" +
"Ignore technical discussions and code-related details.\n" +
"Prefer high-importance facts over low-importance ones.";
Remarks
The guidance is injected as extraction guidelines alongside the conversation content. Use it to control the extraction behavior: what to extract, what to ignore, and what to prioritize.
The structured output schema (fields, types, enum values) is handled automatically. The guidance only needs to describe the high-level extraction rules.