Skip to main content

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 an LLM object with a model name, then call it with a prompt.
The call returns a 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