Install Curator
Curator needs Python 3.10 or later.Set an API key
This example uses an OpenAI model, so set your OpenAI key.Send a prompt
Create anLLM object with a model name, then call it with a prompt.
CuratorResponse. Its dataset attribute holds the results as a Hugging Face Dataset, so you can call to_pandas() on it.
To get several responses, pass a list of prompts. Curator sends them in parallel.
Curator caches every response. If you run the same code again, Curator reads the responses from the cache and does not call the model. See Caching and recovery.
Next steps
- Read Key concepts to learn how to write your own
promptandparsemethods. - Read Structured output to get typed results from the model.
- Turn on the Curator Viewer to watch responses while Curator generates them.