Skip to content

Slot: k_nearest

URI: dspy:k_nearest

Applicable Classes

Name Description Modifies Slot
KNN K-nearest-neighbor demo selector (``dspy no
KNNFewShot KNN-selected few-shot optimizer (``dspy no

Properties

Type and Range

Property Value
Range Integer
Domain Of KNN, KNNFewShot

Cardinality and Requirements

Property Value
### Value Constraints
Property Value
Minimum Value 1

Aliases

  • k

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:k_nearest
native dspy:k_nearest

LinkML Source

name: k_nearest
from_schema: https://w3id.org/lmodel/dspy
aliases:
- k
rank: 1000
domain_of:
- KNN
- KNNFewShot
range: integer
minimum_value: 1