ollama - 💡(How to fix) Fix Documentation best practice for Modelfile system prompts — HADS standard [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14802Fetched 2026-04-08 00:43:17
View on GitHub
Comments
3
Participants
2
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
commented ×3closed ×1labeled ×1
RAW_BUFFERClick to expand / collapse

Wanted to flag an open standard that could help Ollama users write better system prompts and documentation: HADS — Human-AI Document Standard.

https://github.com/catcam/hads

The idea: Tag sections of your docs so the model knows what to read and skip:

  • **[SPEC]** — facts to extract (terse, bullet lists)
  • **[NOTE]** — human context (model can skip)
  • **[BUG]** — known failures + fixes (always read)

An AI manifest at the top makes it explicit. Works in Modelfile SYSTEM blocks, knowledge docs, any Markdown.

Especially useful for smaller models (7B-13B) — they don't have to reason about document structure, the manifest tells them exactly what matters.

Worth a mention in Ollama docs or community resources?

extent analysis

Fix Plan

To implement the HADS standard in Ollama documentation, follow these steps:

  • Update the documentation template to include the AI manifest at the top
  • Use the following tags to section the documentation:
    • **[SPEC]** for facts to extract
    • **[NOTE]** for human context
    • **[BUG]** for known failures and fixes
  • Ensure the tags are used consistently throughout the documentation

Example code snippet:

# AI Manifest
This document follows the Human-AI Document Standard (HADS)

## Introduction
**[NOTE]** This is a human-readable introduction to the system

## System Specifications
**[SPEC]**
* Fact 1
* Fact 2
* Fact 3

## Known Issues
**[BUG]**
* Issue 1: description and fix
* Issue 2: description and fix

Verification

To verify that the fix worked, check that the documentation is correctly sectioned with the HADS tags and that the AI model is able to extract the relevant information.

Extra Tips

  • Use a linter or automated tool to enforce consistent use of the HADS tags
  • Provide guidance to documentation authors on how to use the HADS standard effectively
  • Consider adding a link to the HADS specification in the Ollama documentation for reference.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING