Question sets¶
Core
report_analyst/ ยท Reciprocal Public License. This is the open core: the Streamlit analyst, chunking, question sets, and benchmarking. It ships in the core Docker image.
QuestionSetLoader reads *_questions.yaml and exposes each set by id.
Answer modes are declared per question in guidelines:
| Mode | Guideline cue | Guide |
|---|---|---|
| Free-form | no ANSWER type line |
Question sets |
| Classification (yes/no) | ANSWER type: classification |
Classification |
| Quantity (numerical) | ANSWER type: quantity |
Quantity |
Mixed example: ESRS E1 (esrs_e1_climate). See the question sets guide for the full file table.
report_analyst.core.question_loader.QuestionSet
dataclass
¶
Data class for a question set
report_analyst.core.question_loader.QuestionSetLoader
¶
Centralized loader for question sets from YAML files
get_question_sets()
¶
Get all available question sets (lazy loaded)
get_question_set(question_set_id)
¶
Get a specific question set by ID
get_question_set_names()
¶
Get question set IDs and names for UI display
get_question_set_info()
¶
Get question set info (name and description) for UI display
get_questions(question_set_id)
¶
Get questions for a specific question set
get_question_set_options()
¶
Get list of question set IDs for UI dropdown options
reload()
¶
Force reload of question sets (also re-reads QUESTIONSETS_PATH).
report_analyst.core.question_loader.get_question_loader()
¶
Get the global question loader instance