Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable passing a temperature parameter in chat #1061

Open
srdas opened this issue Oct 29, 2024 · 1 comment
Open

Enable passing a temperature parameter in chat #1061

srdas opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@srdas
Copy link
Collaborator

srdas commented Oct 29, 2024

The chat interface does not permit the user to pass in a temperature parameter to be used with the LLM. Nor does it reveal what the default temperature parameter is for the LLM being used. One use case that science/research users have requested is to include the temperature parameter in settings and allow the user to change it. This will aid experimentation by modulating the temperature parameter, which adjusts the extent of randomness in responses from the LLM. Some chat interfaces enable choosing the temperature parameter in a separate panel in the interface.

Proposed approach to enabling this in Jupyter AI: add a float field for "Temperature" to the Settings interface below the Region name:
image
This will show the current temperature parameter and allow the user to change it.

An additional option is to allow the user to postfix the temperature parameter to a query/prompt using a --temperature <float(0,1)> or -t <float(0,1)>, noting of course that the temperature parameter can only be in the range (0,1).

@srdas srdas added the enhancement New feature or request label Oct 29, 2024
@ykharkov
Copy link

Yes, this would be a great enhancement! Can also suggest to add "top-k" and "top-p" parameters as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants