jupyter-ai icon indicating copy to clipboard operation
jupyter-ai copied to clipboard

Update prompts for locally installed models

Open 3coins opened this issue 2 years ago • 6 comments
trafficstars

Problem

Current prompts in Jupyter AI work well with remote providers, but are not optimized for locally installed models provided by GPT4All. See the discussion on #190 to some examples where the responses are not honoring the guardrails in the prompt.

Proposed Solution

Update the prompt, so it behaves consistently with all models. A second option is to provide a custom prompt for local providers.

3coins avatar Jun 16 '23 19:06 3coins

Would this also solve cases where your model is intended for auto-completing code? E.g. the current prompts asking magics with code format doesn't work with all models since it adds natural language instructions after the code asking about the output being code in markdown etc.

vidartf avatar Jun 28 '23 16:06 vidartf

@vidartf We are looking into applying different prompt templates for each provider, so they are specific to the provider. It's not captured fully here, but this issue along with #225 should make improvements to tackling peculiarities with different providers.

3coins avatar Jun 29 '23 02:06 3coins

Fixed by #309.

JasonWeill avatar Sep 05 '23 22:09 JasonWeill

@JasonWeill This issue is only solved partially by 309. There is pending work to add these templates and use them with chat UI.

3coins avatar Sep 06 '23 19:09 3coins

OK, reopened.

JasonWeill avatar Sep 06 '23 20:09 JasonWeill

Code Llama instruction models require different prompting specification. This requires an ability to customize the prompt for chat generation as well. Can this be supported?

sundaraa-deshaw avatar Nov 28 '23 09:11 sundaraa-deshaw