Back to Devexpress

IAIDocProcessingService.AskAIAsync(Presentation, String, RagOptions, CancellationToken) Method

officefileapi-devexpress-dot-aiintegration-dot-docs-dot-iaidocprocessingservice-dot-askaiasync-x28-presentation-string-ragoptions-cancellationtoken-x29.md

latest2.6 KB
Original Source

IAIDocProcessingService.AskAIAsync(Presentation, String, RagOptions, CancellationToken) Method

Returns a response to a custom question about the presentation content.

Namespace : DevExpress.AIIntegration.Docs

Assembly : DevExpress.AIIntegration.Docs.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Docs

Declaration

csharp
Task<string> AskAIAsync(
    Presentation presentation,
    string question,
    RagOptions options,
    CancellationToken cancellationToken = default(CancellationToken)
)
vb
Function AskAIAsync(
    presentation As Presentation,
    question As String,
    options As RagOptions,
    cancellationToken As CancellationToken = Nothing
) As Task(Of String)

Parameters

NameTypeDescription
presentationPresentation

The Presentation instance that contains the content to be questioned.

| | question | String |

The question about the presentation content.

| | options | RagOptions |

An object that contains retrieval-augmented generation (RAG) options.

|

Optional Parameters

NameTypeDefaultDescription
cancellationTokenCancellationTokennull

The token that cancels the task.

|

Returns

TypeDescription
Task<String>

The response that contains an AI-generated answer.

|

See Also

IAIDocProcessingService Interface

IAIDocProcessingService Members

DevExpress.AIIntegration.Docs Namespace