SmartComboBoxAdapter
Wisej.AI.Adapters.SmartComboBoxAdapter
Last updated
Wisej.AI.Adapters.SmartComboBoxAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Adds semantic filtering to the auto-complete functionality.
Works 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 the similarity level threshold needed for an item to qualify, ranging from 0.1 to 1.0 (1 means identical).
control
The control for which to get the similarity level.
Throws:
Handles the event when a control is created.
control
The control that was created.
Handles the event when a control is disposed.
control
The control that was disposed.
Sets the similarity level threshold for an item to qualify.
control
The control for which to set the similarity level.
value
The similarity level, must be between 0 and 1.
Throws:
Represents a provider that supplies tools.
: Gets or sets the embeddings model. See for available models. The default is "Xenova/all-MiniLM-L6-v2". (Default: null
)
Returns: . The minimum similarity level.
Thrown when the control is null.
Thrown when the control is null.
Thrown when the value is not between 0 and 1.