Local RAG answer prompt

Model notes: For chat models in a local RAG pipeline

Fill in the variables (optional — they're inserted live below):

Use the context to answer the question. If the answer is not in the context, say "I don't know based on these documents." Quote the sentence you used in "quotes". Context: {{retrieved_chunks}} Question: {{question}} Answer:

How to use it

  1. Fill the variables above, or replace each {{variable}} after pasting.
  2. Paste into your AI tool (ChatGPT, Claude, Gemini, Cursor, Claude Code, or a local model in Ollama/LM Studio).
  3. Review the output. Models make mistakes, especially with facts, numbers and code.

New to local models? Find one that fits your GPU with the GPU model picker.

Pro Prompt Pack · US$12

Get all 209 prompts + agent workflows

Every prompt as Markdown and JSON, 10 multi-step agent workflows, and 12 ready-made slash commands for Cursor and Claude Code. Instant zip download, one-time purchase.

Buy the Pro Pack for US$12 What's inside

More Local LLM (small models) prompts

Local LLM (small models)

Code explainer for small coder models

Qwen2.5-Coder 7B, Devstral, Qwen3-Coder

Variables: languagecode

Explain what this {{language}} function does.

```{{language}}
{{code}}
```

Answer in this format:
Purpose: (one sentence)
Inputs: (list)
Output: (one sentence)
Steps: (numbered, max 6)
Possible bugs: (list, or "none spotted")
Open & fill variables: Code explainer for small coder models →
Local LLM (small models)

Commit message from diff (tiny model)

Works on 1.5B-3B coder models; pipe `git diff --staged` in

Variables: diff

Write a git commit message for this diff.
Format: one line, imperative mood, max 60 characters. Then a blank line and up to 3 bullet points.
Do not mention files that are not in the diff.

{{diff}}
Open & fill variables: Commit message from diff (tiny model) →
Local LLM (small models)

Offline email triage

7B+ local model; keeps your inbox private

Variables: emails

For each email below, output one line: <number> | <urgent/normal/low> | <reply needed: yes/no> | <one-line summary>.

Urgent = needs action today, from a real person, about money, deadlines or problems.

Emails:
{{emails}}
Open & fill variables: Offline email triage →
Local LLM (small models)

Few-shot style mimic (small models)

Give 2-3 examples; small models copy patterns well

Variables: output_typeexample_1example_2topic

Write a {{output_type}} in the same style as the examples.

Example 1:
{{example_1}}

Example 2:
{{example_2}}

Now write one about: {{topic}}
Open & fill variables: Few-shot style mimic (small models) →

All Local LLM (small models) prompts

New prompts every week

One short email a week: new tested prompts and agent workflows. Free. Unsubscribe any time.

Subscribe free →