Click or drag to resize

PresentationAI DocumentSearch Method (String, String, Boolean)

Performs a question-searching task using the AI service with the specified question, for a file based on server-side path.

Namespace: Spire.Presentation.AI
Assembly: Spire.Presentation (in Spire.Presentation.dll) Version: 10.4.2.0 (10.4.2.6046)
Syntax
public string DocumentSearch(
	string question,
	string file_server_path,
	bool enableHistory = false
)

Parameters

question
Type: System String
The question to be searched.
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
result contains the generated answer as a string.
See Also