Skip to main content
All docs
V24.2

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> 

Inheritance

Show 12 items
Object
DispatcherObject
DependencyObject
Freezable
Animatable
DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase
DevExpress.Mvvm.UI.Interactivity.Behavior
DevExpress.Mvvm.UI.Interactivity.Behavior<DependencyObject>
DevExpress.AIIntegration.Wpf.Internal.AIBehavior
DevExpress.AIIntegration.Wpf.Internal.TextBehaviorBase<DevExpress.AIIntegration.Wpf.Internal.IDocumentPreviewBehaviorSource, DevExpress.AIIntegration.Wpf.Internal.DocumentSummarizeRequestViewModel>
DevExpress.AIIntegration.Wpf.Internal.DocumentTextBehaviorBase<DevExpress.AIIntegration.Wpf.Internal.DocumentSummarizeRequestViewModel>
DocumentSummarizeBehavior
See Also