I am trying to use Gemini Pro API to generate personalized content for emails in a campaign.
When I use prompt manually in Gemini Web Chat, result follows my instructions much better and is a lot more "human", than doing same request in API.
Previously I tried making same thing work with ChatGPT, and I had the same issue. Looks like a lot of other people have same problem: https://community.openai.com/t/different-results-chatgpt3-5-vs-api-gpt-3-5-turbo/123712
I tried using system prompts and various other hacks, but couldn't get it to work.
So I switched to Gemini, but now facing the same problem.
Generate cold email.
Target Audience: Small Startups
Goal: Get reply
Value Propositon: Find best Developers
Recepient: John Smith, CEO of Acma, Inc.
Keep it spartan an concise.
Gemini Web (Pro) returned:
Subject: Finding Top Talent That Scales Fast, Like Acma
Hi John,
Your success at Acma is inspiring! Did you know finding the right developers can be 2x faster with our targeted talent pool & AI matching?
Just a quick question: are you actively growing your dev team?
No pressure, just curious if we could help save you time & land rockstars.
Best,
[Your Name]
Which is just what I want...
But if I do same thing in API:
POST: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=
{
"contents": [
{
"parts":[{
"text": "My Prompt goes here"}]},
]
}
I get back:
Subject: Unlock Your Startup's Potential with Top Talent Dear John Smith, As the CEO of Acma, Inc., I understand the importance of finding exceptional developers to drive your startup's success. Our platform connects startups with the best software engineers tailored to your specific needs. We leverage AI and a global network to provide a seamless and efficient recruitment experience. We believe that every startup can access the talent they need to thrive. Let us help you find the perfect match for your team. Schedule a quick call to learn more: [Insert scheduling link] Best regards, [Your Name]
It is not bad, but it is not as concise or direct as the Web. And it doesn't have much human feel to it.
I ran the same prompt multiple times on Web Chat and through API and results are consistently better on Web Chat.
What parameters do I need to pass to API to match the quality of results to Gemini Web Chat?
I observed this too, but with creative writing. API seems far inferior to the website in general: https://www.reddit.com/r/Bard/comments/1auft9a/gemini_pro_via_api_writes_like_a_dumdum_compared/
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |