ExcelAI
DocumentSearch Method (String, String, Dictionary
String, String
, Boolean)
|
Performs a question-searching task using the AI service with the specified question.
Namespace:
Spire.Xls.AI
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public string DocumentSearch(
string question,
string file_server_path = null,
Dictionary<string, string> options = null,
bool enableHistory = false
)
Public Function DocumentSearch (
question As String,
Optional file_server_path As String = Nothing,
Optional options As Dictionary(Of String, String) = Nothing,
Optional enableHistory As Boolean = false
) As String
public:
String^ DocumentSearch(
String^ question,
String^ file_server_path = nullptr,
Dictionary<String^, String^>^ options = nullptr,
bool enableHistory = false
)
member DocumentSearch :
question : string *
?file_server_path : string *
?options : Dictionary<string, string> *
?enableHistory : bool
(* Defaults:
let _file_server_path = defaultArg file_server_path null
let _options = defaultArg options null
let _enableHistory = defaultArg enableHistory false
*)
-> string
Parameters
-
question
-
Type:
System
String
The question to be searched.
-
file_server_path
(Optional)
-
Type:
System
String
QA for a file based on server-side path.
-
options
(Optional)
-
Type:
System.Collections.Generic
Dictionary
String
,
String
extra options.
-
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