babakcode / flutter_gemini

Flutter Google Gemini SDK
https://pub.dev/packages/flutter_gemini
BSD 3-Clause "New" or "Revised" License
166 stars 54 forks source link

Need information on Prompt engineering (System message) and not access to internet. #16

Open AdvaitKale01 opened 6 months ago

AdvaitKale01 commented 6 months ago

So I wanted to discuss on 2 things-

  1. How can I define a system prompt or basic prompt engineering to the chat conversation? What are the role types? Like is there a system role for this? Example- Content(parts: [Parts(text: 'You are a helpful assistant who gives accurate answers to world history questions.'], role: 'system')

  2. I have used the turn based chat type. And the model does not have access to internet. I am assuming model might be PALM. If I explicitly specify modelName:'gemini-1.0-pro' then I get no response.