Prerequisites
- Python 3.10 or later.
- Curator, installed with
pip install bespokelabs-curator. - An API key for an LLM provider. This guide uses OpenAI.
1
Define the response formats
2
Generate topics
This
LLM subclass generates a list of topics.3
Write poems about the topics
This subclass writes two poems for each topic.
Rate limit settings
Pass these keys inbackend_params to control how fast Curator sends requests.
max_retries and request_timeout.