SmartDocumentAdapter
Wisej.AI.Adapters.SmartDocumentAdapter
Last updated
Wisej.AI.Adapters.SmartDocumentAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Represents a document adapter that can perform AI tasks using a document as a data source and interact with the user through a ChatBox control.
This class integrates with the to search within the document being managed. It provides properties to configure the bot's appearance and document handling, and events to manage responses.
Initializes a new instance of the class.
: Gets or sets a value indicating whether the history of the conversation is cleared after each response. (Default: False
)
question
Throws:
e
control
control
text
text
Resets the conversation history.
removeMessages
Indicates whether all messages from the ChatBox control should also be removed.
Executes the core logic asynchronously.
control
The control associated with the operation.
Represents a provider that supplies tools.
: Gets or sets the avatar image source of the bot. (Default: "resource.wx/Wisej.AI/Icons/wisej-avatar.svg"
)
: Gets or sets the name of the bot. (Default: "Wisej.AI"
)
: Gets the associated ChatBox control.
: Gets or sets the document conversion service used for converting documents to text.
: Gets or sets the file path of the document. (Default: null
)
: Gets or sets the file type. i.e. .docx, .pdf, .txt. If null it will be detected automatically. (Default: null
)
: Get or sets the maximum number of vector clusters to generate when performing summarization tasks. (Default: 5
)
: Gets or sets the minimum similarity threshold. (Default: 0.25
)
: Gets or sets the file path of the document. (Default: null
)
: Gets or sets the text splitter service used for splitting text into smaller chunks.
: Gets or sets the number of top results to retrieve. (Default: 10
)
: Gets the user representing the bot.
Returns: .
When question is null.
Raises the event.
The instance containing the event data.
Returns: .
Returns: .
Returns: . A task representing the asynchronous operation.
Occurs when an answer is received.