ExampleSelector

org.llm4s.eval.dataset.ExampleSelector
See theExampleSelector companion object
sealed trait ExampleSelector

Selects a subset of examples from a dataset.

Pattern-match exhaustively over the three cases to handle all variants:

 selector match {
   case ExampleSelector.All        => // return everything
   case ExampleSelector.ByTags(ts) => // filter by tag intersection
   case ExampleSelector.ByIds(ids) => // filter by exact ID membership
 }

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object All
class ByIds
class ByTags
In this article