Wisej.AI.Adapters.SmartComboBoxAdapter
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Adds semantic filtering to the ComboBox auto-complete functionality.
public class SmartComboBoxAdapter : SmartAdapter, IExtenderProviderWorks with the . Semantic filtering (items embedding) is entirely hosted on the user's browser and runs in JavaScript. Uses the HuggingFace TransformersJs library to run in-browser embeddings.
Initializes a new instance of the class.
: Gets or sets a value indicating whether the adapter should run automatically. (Default: True)
: Gets or sets the embeddings model. See for available models. The default is "Xenova/all-MiniLM-L6-v2". (Default: null)
Gets the similarity level threshold needed for an item to qualify, ranging from 0.1 to 1.0 (1 means identical).
Returns: . The minimum similarity level.
Throws:
Thrown when the control is null.
Handles the event when a control is created.
Handles the event when a control is disposed.
Sets the similarity level threshold for an item to qualify.
Throws:
Thrown when the control is null.
Thrown when the value is not between 0 and 1.
control
The control for which to get the similarity level.
control
The control that was created.
control
The control that was disposed.
control
The control for which to set the similarity level.
value
The similarity level, must be between 0 and 1.
Represents a provider that supplies tools.
Public Class SmartComboBoxAdapter
Inherits SmartAdapter
Implements IExtenderProvider