Inkhmer LogoInKhmerBuilding the digital future
  • About
  • Projects
  • Blog
  • Tools
  • Learn
  • Contact
KMខ្មែរENEnglish

InKhmer.com — a personal Khmer Digital Hub curated by our team. Tools, Cambodia resources, Khmer culture, and digital projects. Practical, approachable, and built for everyone.

Social

FacebookTelegram

Quick Links

  • About
  • Projects
  • Blog
  • Tools
  • Learn
  • Contact

Explore

  • What We Build
  • How We Build
  • Roadmap
  • Experiments
  • Sitemap

Subscribe to our newsletter

Get the latest updates about Cambodia, new tools, and exclusive content delivered to your inbox.

  • Terms of Service
  • Privacy Policy
  • Cookie Policy

© 2026 InKhmer. All rights reserved.

LearnEffective Prompting in Khmer and EnglishFew-shot examples

Few-shot examples

The best way to teach a prompt is to show it, not just tell it. If you include 2–3 examples of what you want, it learns the pattern instantly. This is called few-shot prompting.

How it works:

Write a caption for a product. Examples:

  • green tea → "Fresh green tea from Mondulkiri, naturally fragrant. Try it today! #KhmerTea"
  • moringa soap → "Handmade moringa soap, good for dry skin. Delivered nationwide. #KhmerSoap"

Now write one for: red chilli powder

The model learns tone, length and structure from your examples — the output follows the pattern better than a long description would produce.

When to use few-shot:

  • Structured output (tables, lists, special formats).
  • A specific tone or language that's hard to describe.
  • Work you repeat often and want consistent results.

Rules for good examples:

  • Use 2–5 — more makes the prompt long and expensive.
  • Examples must be correct and slightly varied (not all the same words).
  • Your examples are the standard — errors in them produce errors in output.

Try it in the widget below: compare a prompt with no examples vs one with 2 examples on the same task — note the difference.

Takeaways:

  • Few-shot = give 2–5 examples instead of a long description
  • For format, tone and repetitive tasks
  • Examples are the standard — bad examples give bad output

Sign in to start tracking from this lesson