rgbkrk / genai

What if GPT could help you notebook?
BSD 3-Clause "New" or "Revised" License
354 stars 37 forks source link

Create a way to override the default prompts #42

Closed rgbkrk closed 1 year ago

rgbkrk commented 1 year ago

I'd like to be able to experiment with the prompts to do tuning outside of making another release.

import genai

genai.set_default_error_prompt(
    """
You are a data scientist diagnosing errors from your colleagues.
They ran into an error in their notebook. Be concise. Format your response in markdown.
Be extremely minimal with prose, aiming primarily for concise fixes.
""".strip()
)

As the python package solidifies, the most likely piece to change over time is going to be the prompt.

rgbkrk commented 1 year ago

Closed by #69