---
title: "Discussion on \"Why a Single Few-Shot Example Made Our LLM Hallucinate User History — And 3 Prompt & Regex Bugs We Fixed\" | Hashnode"
description: "Discussion on \"Why a Single Few-Shot Example Made Our LLM Hallucinate User History — And 3 Prompt & Regex Bugs We Fixed\". How one few-shot example caused LLM hallucinations, why negative prompt rules backfire, and 3 TypeScript regex bugs caught by 256 adversarial tests."
url: "https://hashnode.com/posts/why-a-single-few-shot-example-made-our-llm-hallucinate-user-history-and-3-prompt-regex-bugs-we-fixed/6b0bab5ba9076c6643e70e19"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why a Single Few-Shot Example Made Our LLM Hallucinate User History — And 3 Prompt & Regex Bugs We Fixed](https://tarotfortunecards.hashnode.dev/why-a-single-few-shot-example-made-our-llm-hallucinate-user-history-and-3-prompt-regex-bugs-we-fixed?utm_source=hashnode&utm_medium=feed)

How one few-shot example caused LLM hallucinations, why negative prompt rules backfire, and 3 TypeScript regex bugs caught by 256 adversarial tests.

4d ago · 8 min read · tarotfortunecards.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[tarotfortunecards](https://hashnode.com/@tarotfortunecards)

@tarotfortunecards

  
[View profile](https://hashnode.com/@tarotfortunecards)

Indie full-stack developer building Next.js &amp; AI web apps, currently working on Tarot Fortune Cards.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
