Prompt Engineering Using Gemini API Setup from google import genai from google.genai import types client = genai.Client(api_key=GOOGLE_API_KEY) Basic Usage response = client.models.generate_content( model="gemini-2.0-flash", contents="Explain AI to me like I'm a kid." ) print(response.text) Interactive Chat chat = client.chats.create(model='gemini-2.0-flash', history=[]) response = chat.send_message('Hello! My name is Zlork.') print(response.text) Listing Available Models for model in client.models.list(): print(model.name) Model Output Settings # Max output tokens short_config = types.GenerateContentConfig(max_output_tokens=200) # High temperature for creative responses high_temp_config = types.Read more...
Prompt Engineering Notes Prompt engineering is the process of designing high-quality prompts to guide LLMs to produce accurate outputs. This involves refining length, structure, tone, and clarity.
Model-Specific Setup Choose Your LLM and Configure: Model-specific prompts and capabilities Sampling parameters: Output Length
More tokens = more compute cost. Reducing length just truncates output. ReAct model warning: Emits irrelevant tokens post-response. Sampling Controls Parameter Effect Temperature Low = deterministic; High = creative/random Top-K Limit prediction to top K likely tokens Top-P Nucleus sampling = choose from top cumulative probability P Num Tokens Max output length Practical Guidelines: Temperature = 0.Read more...
Sales is a Service A change in perspective.
In a world that feels like a rat race—where everyone chases that extra sale, that extra attention—it’s hard to spot genuine salesmanship. Maybe it doesn’t even exist anymore?
Sales and marketing strategies often feel like they’re just what’s taught in schools:
a mix of human psychology twists, polished speech, hiding flaws, and putting on a smile.
At the end of the day, the numbers speak loudest.Read more...
Perfection is a Sham Delayed progress Analysis paralysis Decision fatigue Brain rot Sunk cost The elephant that forgot it could move Lost motivation Burnout Discontentment “Work expands so as to fill the time available for its completion.”
— Parkinson’s Law, C. Northcote Parkinson (1955)
And still, perfection is sought.
Craved. Chased. Worshipped.
Why?
Because perfection is a shield.
A shield against criticism.
A way to avoid failure.
A distraction from fear.Read more...
This wasn’t meant to be my first post. But I wanted to start with something real.
What’s happened to LinkedIn? Seriously, LinkedIn is overflowing with humble brags, pointless posts, and thinly veiled marketing. The good old “HR meets candidates” platform is now a full-blown social network. Everyone seems to have sudden epiphanies — some insightful, others… well, less so. Here’s one: learning about customer obsession from a street-side peanut vendor.Read more...