roboflow / multimodal-maestro

streamline the fine-tuning process for multimodal models: PaliGemma, Florence-2, Phi-3.5 Vision
Apache License 2.0
1.21k stars 89 forks source link

Change prompt style to avoid breaklines #3

Closed pedrogengo closed 9 months ago

pedrogengo commented 9 months ago

Description

When using triple quotes for multiline strings it generates \n at the end of each line. In order to avoid any issues related to the prompt, I suggest the proposed change.

Below you can see the system prompt we are sending to GPT4.

{'role': 'system', 'content': ["\nFor any labels or markings on an image that you reference in your response, please \nenclose them in square brackets ([]) and list them explicitly. Do not use ranges; for \nexample, instead of '1 - 4', list as '[1], [2], [3], [4]'. These labels could be \nnumbers or letters and typically correspond to specific segments or parts of the image.\n"]}

Type of change

Please delete options that are not relevant.

CLAassistant commented 9 months ago

CLA assistant check
All committers have signed the CLA.

SkalskiP commented 9 months ago

Hi @pedrogengo! 👋🏻 Thanks a lot for your interest in the project. That's an excellent catch. Merging!