Ideation Catalog
Source: examples/catalog/ideation_catalog.py
Introduction
Inspect the packaged ideation catalog.
Technical Implementation
This page is generated from the top-of-file module docstring and the example source code. The full script is included below for direct inspection.
1from __future__ import annotations
2
3import design_research_problems as derp
4
5
6def main() -> None:
7 """Print a small ideation catalog summary."""
8 catalog = derp.get_ideation_catalog()
9 print("prompts", len(catalog.list_prompts()))
10 print("variants", len(catalog.list_variants()))
11 print("families", len(catalog.list_families()))
12 print("studies", len(catalog.list_studies()))
13 for prompt in catalog.list_prompts()[:3]:
14 print(prompt.prompt_id, prompt.family_id, prompt.status)
15
16
17if __name__ == "__main__":
18 main()
Expected Results
Run Command
PYTHONPATH=src python3 examples/catalog/ideation_catalog.py
Run the command shown below from repository root. Output should summarize the problem setup, a baseline solution, or diagnostic values relevant to this example.