#There is a google-colab documentation of

1 messages · Page 1 of 1 (latest)

sweet gust
#

Thank you for your help. My wish is to feed the api with personal data.

white kayak
#

hi, i suscribe to this, so interesting

raven bay
# sweet gust Thank you for your help. My wish is to feed the api with personal data.

Hello @sweet gust , I'm very glad to help!

I haven't tried to feed the Gemini client big data but I assume that you're trying to feed it a small amount of data, (we can search together ways to feed it big data if you want)

For the small data example, I prefer to prompt the data in the starting message of the conversation ( this code is also mentioned in the documentation I mentioned before )

model = genai.GenerativeModel('gemini-pro')

messages = [
    {'role':'user',
     'parts': ["I'm Taw. 17 years old full stack developer and automation expert, I love to play chess as a hoppy ( I'm 1800 bullet rated online!)"]}
]

response = model.generate_content(messages)

messages.append({'role':'model',
                 'parts':[response.text]})

messages.append({'role':'user',
                 'parts':["Okay, talk a little about taw"]})

response = model.generate_content(messages)

print(response.text)

If you want to make Gemini know you in the future without teaching it directly I suggest you link your personal portfolio and LinkedIn or any provisional networking account with big websites such as your github or x profiles, and it might be trained to the model, this is a huge step you should take for your professional life anyways!

sweet gust
#

Thank you for your reply. I understand much better now. My challenge is to provide data for example a word document, a pdf document, or a website, or any other data base.

#

I'd appreciate it if we could work together to find a solution.