DocumentSummarizeBehavior Class
Generates a brief summary of long text contained in a document.
Namespace: DevExpress.AIIntegration.Wpf
Assembly: DevExpress.AIIntegration.Wpf.v24.2.dll
NuGet Package: DevExpress.AIIntegration.Wpf
Declaration
public class DocumentSummarizeBehavior :
DocumentTextBehaviorBase<DocumentSummarizeRequestViewModel>
Remarks
DocumentSummarizeBehavior
supports the following summarization modes:
Abstractive Summarization
Generates a summary by understanding the context of the original text and rephrasing it in a new, concise form. The AI essentially “writes” a new summary based on its understanding, which may include new sentences that were not present in the original text.
Extractive Summarization
Selects and extracts key sentences or phrases from the original text. The AI identifies the most important parts of the content and combines them into a summary without altering the original wording.
The following example activates the AI-powered “Summarize” extension in a Document Preview control:
xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"
xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
...
<dxp:DocumentPreviewControl Name="preview">
<dxmvvm:Interaction.Behaviors>
<dxai:DocumentSummarizeBehavior SummarizationMode="Abstractive" />
</dxmvvm:Interaction.Behaviors>
</dxp:DocumentPreviewControl>