SmartComboBoxAdapter
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, IExtenderProviderPublic Class SmartComboBoxAdapter
Inherits SmartAdapter
Implements IExtenderProviderWorks with the HuggingFaceJavaScriptEndpoint. 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.
Constructors
SmartComboBoxAdapter()
Initializes a new instance of the SmartComboBoxAdapter class.
Properties
AutoRun
Boolean: Gets or sets a value indicating whether the adapter should run automatically. (Default: True)
Model
String: Gets or sets the embeddings model. See index for available models. The default is "Xenova/all-MiniLM-L6-v2". (Default: null)
Methods
GetSimilarity(control)
Gets the similarity level threshold needed for an item to qualify, ranging from 0.1 to 1.0 (1 means identical).
Returns: Double. The minimum similarity level.
Throws:
ArgumentNullException Thrown when the control is null.
OnControlCreated(control)
Handles the event when a control is created.
OnControlDisposed(control)
Handles the event when a control is disposed.
SetSimilarity(control, value)
Sets the similarity level threshold for an item to qualify.
Throws:
ArgumentNullException Thrown when the control is null.
ArgumentException Thrown when the value is not between 0 and 1.
Implements
Represents a provider that supplies tools.
Last updated
