Ask a question using AI.
Namespace:
Spire.Xls.AI
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public string Search(
string question,
string language,
bool enableHistory = false
)
Public Function Search (
question As String,
language As String,
Optional enableHistory As Boolean = false
) As String
public:
String^ Search(
String^ question,
String^ language,
bool enableHistory = false
)
member Search :
question : string *
language : string *
?enableHistory : bool
(* Defaults:
let _enableHistory = defaultArg enableHistory false
*)
-> string
Parameters
-
question
-
Type:
System
String
Questions asked.
-
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