Skip to content

Conversation

@c-bata
Copy link
Member

@c-bata c-bata commented Sep 26, 2025

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

Add tutorial of LLM integration

@c-bata c-bata force-pushed the tutorial-llm-integration branch from 5110d05 to d70bff9 Compare September 26, 2025 04:33
@c-bata c-bata marked this pull request as ready for review September 26, 2025 04:33
@c-bata
Copy link
Member Author

c-bata commented Sep 26, 2025

@y0z Could you review this PR?

=========================

This tutorial explains how to enable and use the LLM (Large Language Model) integration of Optuna Dashboard.
With an LLM provider configured, you can interact with the optimization history using natural language—for example, filtering trials or generating Plotly visualizations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be beneficial to expose the API documentation of the LLM Provider to users; this can be addressed in a follow-up task.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good. I addressed this in 2698001. Could you please take a look?
Screenshot 2025-09-30 16 17 15

This feature is currently available in the "Smart Selection" and "Trial (List)" tabs.
For example, in the "Smart Selection" tab, you can use it as follows:

.. image:: ./images/llm/llm-smart-filtering.gif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image quality seems low. I would like to use a higher resolution so that the text is easy to read. I don't think it would be a big problem if the image size were to increase slightly.

Copy link
Member Author

@c-bata c-bata Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not prefer adding the large file-sized image in the repository since it makes git pull slower.
I would prefer not to add a large file-sized image to the repository, as it makes git pull slower.
What do you think about replacing the gif animation with the following image?

Screenshot 2025-09-30 13 27 12

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your suggestion. Replacing the GIF with an informative image looks good!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your reply. I replaced the image with it and force-pushed to remove the gif file from the git history.

@y0z
Copy link
Member

y0z commented Sep 29, 2025

Almost LGTM. I leave minor comments.

@c-bata c-bata force-pushed the tutorial-llm-integration branch from d70bff9 to 2698001 Compare September 30, 2025 07:17
Copy link
Member

@y0z y0z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your updates!
LGTM.

@y0z y0z merged commit d15c9a1 into optuna:main Sep 30, 2025
11 checks passed
@c-bata c-bata deleted the tutorial-llm-integration branch October 1, 2025 02:01
@c-bata c-bata mentioned this pull request Oct 10, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants