TGViewer
Data eXplore : Data Science, ML, Big Data, LLMs and AI Security Data eXplore : Data Science, ML, Big Data, LLMs and AI Security @dataxplore · 578 subscribers
Post #2137 258
8 techniques for getting better answers from LLM

Most people interact with LLM in the same way: ask a question, send it, and work with the result.

This is zero-shot prompting, the basic level. If the answers are not satisfactory, they first improve the prompt, rather than changing the model.

8 prompt engineering techniques:

1. Few-shot prompting: show several input-output examples. The model captures the pattern and applies it to new data.

2. Chain-of-thought (CoT): request a step-by-step reasoning. Breaks complex tasks into verifiable steps.

3. Hierarchy of prompts: system, developer, and user levels with different priorities. The upper levels override the lower ones.

4. Role prompting: assign a role, for example, "you are a security researcher". The model shifts the distribution to the corresponding training data.

5. Negative prompting: explicitly state what not to do. For example, "do not use a marketing style".

6. JSON prompting: specify a JSON schema directly in the prompt. The model returns a structured response according to this schema.

7. Attentive reasoning queries (ARQ): instead of free CoT — structured domain questions. In tests: 90.2% compliance with instructions versus 81.5% for direct prompting.

8. Verbalized sampling: ask the model to generate several variants with probability estimates. It returns diversity suppressed by RLHF.

The techniques combine well: few-shot + CoT, JSON + negative prompting. ARQ is essentially structured CoT for agent scenarios.


Additionally, quality increases with context, tools, and retrieval.

But these 8 techniques are entirely in the prompt — without changing the model, infrastructure, or setup. Only the structure of the request changes.

Here's another article on this topic

••••••••••••••••••••••••••••••••••••••
🤖 Data & ML |
@DataXplore
More from @dataxplore
  1. Sep 18, 2026Am going to announce something big (for me, it's really big) on October 11, 2026.
  2. Sep 14, 2026Post #2188
  3. Aug 31, 2026I joined a Russian community on Telegram. They share some Russian startup and technology u…
  4. Aug 22, 2026Post #2185
  5. Aug 21, 2026Deep systemic analysis of AI constraints from context to internal weight editing. 📂 PDF #…
  6. Aug 17, 2026Adaptive Gradient Thresholding Why Fixed Gradient Clipping Kills Deep RecSys When Feedback…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →