nearest_neighbors
ML-based nearest neighbor token generation using a pre-trained model (e.g., fastText).
Options
| Option | Type | Default | Description |
|---|---|---|---|
MODELLOCATION | string | required | Path to the model file |
TOPK | integer | 1 | Number of nearest neighbors to return |
Examples
CREATE TEXT SEARCH DICTIONARY nn_dict (
TEMPLATE = 'nearest_neighbors',
MODELLOCATION = '/models/cooking.bin',
TOPK = 2
);