google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.62k stars 322 forks source link

Fix issues in create_tuned_model.md #563

Closed nidhinpd-YML closed 3 weeks ago

nidhinpd-YML commented 2 months ago

Description of the change

Updated markdown to add HTML tags to work inside table cells

Motivation

The details especially for training_data was not readable at all. List and sub list all came under a single sentence. Had to check the comments in code to understand what the doc meant.

Type of change

Documentation

Checklist

google-cla[bot] commented 2 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

MarkDaoust commented 1 month ago

Hi, thanks for taking the time to send this change.

One problem here is that these files are generated, so regenerating them will revert these changes.

Another problem is that the source code is used to generate these files has inline markdown that we're inserting into the table cells.

So for an actual fix for the GH viewer we need to find a way to convince it to parse markdown inside the HTML table.

Quick testing shows that the easiest thing is to convince it that the table's help is in a markdown block.

 <table class="responsive fixed orange"><tr><td>`training_data`<a id="training_data"></a></td><td>The dataset to tune the `model on`. 

 * This must be either</td></tr></tr></table>

This fix would need to go into the tensoprflow_docs tool we're using here.

MarkDaoust commented 4 weeks ago

This is fixed by: https://github.com/google-gemini/generative-ai-python/pull/602