DocAI
DocumentSearch Method (String, String, Boolean)
|
Performs a question-answering task using the AI service with the specified question, for a file based on server-side path.
Namespace:
Spire.Doc.AI
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public string DocumentSearch(
string question,
string file_server_path,
bool enableHistory = false
)
Public Function DocumentSearch (
question As String,
file_server_path As String,
Optional enableHistory As Boolean = false
) As String
public:
String^ DocumentSearch(
String^ question,
String^ file_server_path,
bool enableHistory = false
)
member DocumentSearch :
question : string *
file_server_path : string *
?enableHistory : bool
(* Defaults:
let _enableHistory = defaultArg enableHistory false
*)
-> string
Parameters
-
question
-
Type:
System
String
The question to be answered.
-
file_server_path
-
Type:
System
String
The file server path.
-
enableHistory
(Optional)
-
Type:
System
Boolean
Flag indicating whether to enable chat history.
Return Value
Type:
String
See Also