Click or drag to resize

DocAI Search 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 Search(
	string question,
	string language,
	bool enableHistory = false
)

Parameters

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

Return Value

Type: String
result contains the generated answer as a string.
See Also