Click or drag to resize

DocAI Ask Method

Performs a question-answering task using AI.

Namespace: Spire.Doc.AI
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public string Ask(
	string question,
	bool enableHistory = false
)

Parameters

question
Type: System String
The question to be answered.
enableHistory (Optional)
Type: System Boolean
Flag indicating whether to enable chat history.

Return Value

Type: String
A task that represents the asynchronous operation. The task result contains the generated answer as a string.
See Also