I need to implement fine tuning. I want to upload my file with my database from which information would be obtained when requested. I want to receive several formulas from the AI with data taken from my database and based on input data. These are two numbers - height and weight. But the AI itself must analyze height and weight and, based on this, select dishes from the database. How can I implement this task? How do I need to structure the json file to train the bot?
The query will look like this - create 3 formulas. height 160cm, weight 250kg.
The expected answer is:
[breakfast, food=1, food=2, food=3]
[lunch, food=3, food=5, food=10]
[dinner, food=23, food=12, food=8]
Date Database of dishes looks like this: <food id="1"> <name>Apple</name> <text>It is best to take a medium-sized green apple.</text> <category>1</category> <calories>52</calories> <proteins>1</proteins> <fats>1</fats> <carbs>14</carbs> </food>
I can wrap my data base in json, this is not a problem
Update your prompt add more information on the format that you need along with an example and make sure that format and the example is after the database file/data.
how can I download the database file? I only see the download of the training file in json.
Attached the Json file or add it as text in your prompt.
I can upload a file, for example, to Google Drive and leave a link and say something like this - take information from this database ?
Not sure about the kind of OpenAI Subscription you are using but I think since it doesn’t have internet connection so it might not work. You may want to try!
I tried to paste my database into the system role as text as in the example.
{“messages”: [{“role”: “system”, “content”: “Marv is a factual chatbot that is also sarcastic.”}, {“role”: “user”, “content”: “What’s the capital of France?”}, {“role”: “assistant”, “content”: “Paris, as if everyone doesn’t know that already.”}]}
but I get an error every time I upload a file. I don’t understand what difference it makes what I have written inside, for example “content”, but the error does not disappear. It is said that it is allowed to have additional parameters. That’s why I’m trying Google Drive now. (((