Class: Woods::Evaluation::QuerySet::Query
- Inherits:
-
Struct
- Object
- Struct
- Woods::Evaluation::QuerySet::Query
- Defined in:
- lib/woods/evaluation/query_set.rb
Overview
A single evaluation query with ground-truth annotations.
Instance Attribute Summary collapse
-
#expected_units ⇒ Array<String>
readonly
Expected unit identifiers (ground truth).
-
#intent ⇒ Symbol
readonly
Query intent (:lookup, :trace, :explain, :compare).
-
#query ⇒ String
readonly
Natural language query.
-
#scope ⇒ Symbol
readonly
Query scope (:specific, :bounded, :broad).
-
#tags ⇒ Array<String>
readonly
Tags for filtering queries.
Instance Attribute Details
#expected_units ⇒ Array<String> (readonly)
Returns Expected unit identifiers (ground truth).
29 |
# File 'lib/woods/evaluation/query_set.rb', line 29 Query = Struct.new(:query, :expected_units, :intent, :scope, :tags, keyword_init: true) |
#intent ⇒ Symbol (readonly)
Returns Query intent (:lookup, :trace, :explain, :compare).
29 |
# File 'lib/woods/evaluation/query_set.rb', line 29 Query = Struct.new(:query, :expected_units, :intent, :scope, :tags, keyword_init: true) |
#query ⇒ String (readonly)
Returns Natural language query.
29 |
# File 'lib/woods/evaluation/query_set.rb', line 29 Query = Struct.new(:query, :expected_units, :intent, :scope, :tags, keyword_init: true) |
#scope ⇒ Symbol (readonly)
Returns Query scope (:specific, :bounded, :broad).
29 |
# File 'lib/woods/evaluation/query_set.rb', line 29 Query = Struct.new(:query, :expected_units, :intent, :scope, :tags, keyword_init: true) |
#tags ⇒ Array<String> (readonly)
Returns Tags for filtering queries.
29 |
# File 'lib/woods/evaluation/query_set.rb', line 29 Query = Struct.new(:query, :expected_units, :intent, :scope, :tags, keyword_init: true) |