Search code examples
excelopenai-apigpt-3

OpenAI GPT-3 API: How to preserve formatting when pasting content into an Excel cell?


I'm trying to create a fine tuned GPT-3 model. to that end, I have some content that i've formatted in word that im trying to bring to excel (in order to import the training dataset).

My inputs are in the format:

*Point A
    *Subpoint A1
    *Subpoint A2
*Point B
    *Subpoint B1
    *Subpoint B2

However, when i copy the contents into excel, The excel cell converts this to:

*Point A
*Subpoint A1
*Subpoint A2
*Point B
*Subpoint B1
*Subpoint B2

Is there any way for me to preserve my original formatting?

Is there any other way better way than this?

Any help is appreciated greatly :)

Regards, Galeej


Solution

  • It's definitely possible to copy-paste to Excel and keep the original formatting. What you need to do is choose Keep Source Formatting under Paste Options.

    But, I don't think the fine-tuned model will return a completion with the original formatting (if that's your goal).


    EDIT

    Try using the CLI preparation tool to get some suggestions on how to structure the training dataset.