Ideation Exports
Source: examples/catalog/ideation_exports.py
Introduction
Render JSON and CSV exports for the ideation prompt index.
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 compact JSON and CSV previews."""
8 catalog = derp.get_ideation_catalog()
9 json_payload = catalog.export_prompt_index(format="json")
10 csv_payload = catalog.export_prompt_index(format="csv")
11 print(json_payload.splitlines()[0])
12 print(csv_payload.splitlines()[0])
13 print(csv_payload.splitlines()[1])
14
15
16if __name__ == "__main__":
17 main()
Expected Results
Run Command
PYTHONPATH=src python3 examples/catalog/ideation_exports.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.