NEUBIAS / training-resources

Resources for teaching/preparing to teach bioimage analysis
https://neubias.github.io/training-resources
Other
42 stars 22 forks source link

Using LLMs to generate bioimage analysis code #631

Open tischi opened 4 months ago

tischi commented 4 months ago

Hi All,

I would like to add a new module called something like: Using LLMs to generate bioimage analysis code.

If any of you has any opinions/material what should go into such a module please let me know!

Ping @manerotoni @tibuch @stemarcotti @AnniekStok

tischi commented 4 months ago

Hi @tibuch, could you please have a look and tell me what you think about this? https://neubias.github.io/training-resources/coding_with_llms/index.html Any suggestions for improvements?

tibuch commented 4 months ago

Hi @tischi, looks already very good to me! Maybe adding an example prompt could be helpful.

What do you think about the customization function in chat-gpt? Have you used it? Do you know of any good customization instructions?

manerotoni commented 4 months ago

Very cool. I agree with @tibuch, add one prompt of the suggested example and let users take up the rest of it. I use a lot Bard/Gemini as it is within the google framework. Is Chat-GPT better?

tibuch commented 4 months ago

I don't know which one works best. I have only used Chat-GPT and github copilot in my IDE.

Is it possible to tune the answer style in Bard/Gemini as well? Personally I haven't used this so far, but it might be helpful to get more concise answers.

tischi commented 4 months ago

I will add something, in fact there is nothing here yet:

image

I will add an example prompt there.


For technical reasons it is hard to access the Google Bard/Gemini for EMBL employees...

tischi commented 4 months ago

OK, I added something to the activity implementation. I feel this module could be ready to go...

AnniekStok commented 4 months ago

That looks nice! Would it help to paste in an example reply from ChatGPT, so that those who have not used it before know what a response could look like? Or in a second activity give it code with a mistake and ask it to explain why it is wrong and how to correct it?

small typo in "anlaysis" (or was that on purpose to show that ChatGPT can understand typos too?)

tischi commented 4 months ago

Thanks @AnniekStok,

  1. I fixed the typo
  2. I added an example response

(it may take a few seconds for the web-site to rebuilt)