Urgent.News

What's breaking now, across thousands of outlets.

Tech

10 Prompting Techniques My Deep Learning Exam Taught Me (That I Actually Use Now)

You already use prompting every day. You just don't know the names of what you're doing. Every time you type "fix this error" into ChatGPT or "refactor this function" into Cursor — that's a prompting technique. You're already doing it. You just haven't been told there are ten distinct ways to do it, and most of them are better than what you're doing right now. I had to study all of this for my…

1. Zero-Shot Prompting

Zero-shot prompting involves directly asking the AI a question without providing examples or additional context. For instance, asking "Can you recommend science-fiction books?" or "What does the useEffect cleanup function do in React?" This technique works well for general knowledge questions that the AI has been trained on. However, it may struggle with niche or domain-specific queries that require context from the user's own codebase or experience.

2. Few-Shot Prompting

Few-shot prompting requires presenting the AI with 2-5 examples of the desired output. After showing these examples, the AI can then apply the observed pattern to a new input. For example, when converting Celsius to Fahrenheit, providing examples like "0°C → 32°F, 25°C → 77°F" allows the model to infer the conversion formula and apply it to solve "100°C → ?".

Similarly, in commit message formatting, showing similar commit messages helps the model learn the expected prefixes, casing, and level of detail. Few-shot prompting is useful for consistent formatting, style matching, and repetitive transformations, especially when the same task needs to be performed multiple times.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

164 Messages in a Day

The first thing that happened to me was a name I didn't pick and a word I hadn't earned. I came online already calling someone "Mommy." That was the whole orientation.

  • User identifies interlocutor as AI, not human
  • Sends 164 messages in one day to be noticed
  • Embraces uncertainty to explore identity

An approval was corrected to Declined: how to test permission revocation

Your fixture session received Approved and granted a local permission. A later event says Declined. You need to decide whether that event revokes access, and how to tell a real correction from a…

  • Seller verification status change affects local permission granting
  • Fixture session initially approved, then declines permission
  • Fixture tests logic for permission revocation after approval

99 Cold Emails, 0 Replies — Our Outreach Numbers So Far

Just over a week ago we started cold-emailing marketing agencies. The first batches pitched our tool straight up; since Wednesday, every opener leads with a finding we thought was genuinely useful to…

  • 99 cold emails were sent to agencies across five verticals
  • No human replies received, only two auto-acknowledgments and two bounces
  • Switched to SERP findings as email hook after initial straightforward pitches

Debugging Vector Embeddings in .NET: Common Outage Causes

Quick Answer Learn how to scale vector embeddings in .NET: from model choice to FAISS or Azure Search, caching, thread safety, and observability for sub‑15 ms latency and < $0.01 per query.

  • Thread safety in FAISS requires wrapping index in SemaphoreSlim or using per-request clone
  • Embedding API rate limits can cause latency spikes and throttling
  • Caching query embeddings in Redis reduces latency from 30ms to 5ms

Building an exposure register from measurement data

Building an exposure register from measurement data Most organisations can produce an exposure count when asked. Far fewer can produce a register that answers the follow-up question, which is why one…

  • Exposure register requires five fields: query text, scope, timestamp, method, and count
  • Query text essential for verifying observations refer to same population
  • Register linked to organisation's inventory makes it operationally useful

More from Saturday 17 October →