Skip to content

chore(terminology): sweep docs/examples and Python docstrings (#1192 follow-up)#1322

Merged
planetf1 merged 5 commits into
generative-computing:mainfrom
planetf1:worktree-issue-1279
Jun 24, 2026
Merged

chore(terminology): sweep docs/examples and Python docstrings (#1192 follow-up)#1322
planetf1 merged 5 commits into
generative-computing:mainfrom
planetf1:worktree-issue-1279

Conversation

@planetf1

@planetf1 planetf1 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Part of the terminology sweep epic (#1192, Epic #929). This is the second and final wave, completing the sweep across docs/examples/, docs/docs/, and Python docstrings, comments, and user-visible strings. The first wave was #1256 (core source identifiers).

  • HuggingFace / Huggingface / huggingface (prose) → Hugging Face (official two-word branding) in all docstrings, comments, and user-visible strings
  • intrinsic / intrinsics prose → adapter function / adapter functions in docs and examples

Exclusions (intentionally unchanged): HuggingFaceTB/ org names in model IDs, Python identifiers (CustomIntrinsicAdapter, intrinsic_name, call_intrinsic), import paths (from mellea.backends.huggingface import), --intrinsic CLI flags, 'huggingface' provider string literals, filenames/directory paths, URL path segments, glossary entries documenting both terms.

Files changed (30)

mellea/backends/huggingface.py, ollama.py, tools.py, backend.py, cache.py, kv_block_helpers.py, model_ids.py, model_options.py, adapters/adapter.py

mellea/core/base.py

mellea/formatters/granite/base/util.py

mellea/stdlib/session.py, components/chat.py, requirements/rag.py, requirements/safety/guardian.py

docs/examples/intrinsics/README.md, aLora/README.md, rag/README.md, sessions/README.md, granite-switch/README.md + 2 .py, groundedness_requirement_example.py, tools/README.md + .py

docs/docs/examples/index.md, how-to/backends-and-configuration.md, how-to/safety-guardrails.md

Test plan

  • uv run pytest test/ -m "not qualitative" — 2898 passed, 0 new failures (3 pre-existing failures in HF transformer integration tests unaffected by text changes)
  • ruff format + ruff check — clean
  • Pre-commit hooks pass (codespell, markdownlint, mypy)
  • Opus code review — found and fixed additional Huggingface/huggingface case variants missed by initial camelCase-only grep; also fixed two prose intrinsic occurrences and three code-block comments
  • Case-insensitive final grep confirms zero remaining in-scope occurrences

Relationship to other open PRs


Closes #1279
Part of #1192
Part of #929

planetf1 added 3 commits June 23, 2026 19:02
… docstrings (generative-computing#1279)

Follow-up to PR generative-computing#1256 which swept docs/docs/, AGENTS.md, and backend
Python files. Two areas were intentionally deferred and are addressed here.

- intrinsic → adapter function in README.md prose for intrinsics/,
  granite-switch/, aLora/, and groundedness_requirement_example.py
- HuggingFace → Hugging Face (brand name) in tools/, granite-switch/,
  aLora/, and sessions/ examples

- mellea/backends/backend.py (1)
- mellea/backends/tools.py (2)
- mellea/backends/cache.py (2)
- mellea/backends/model_ids.py (3: lines 4, 22, 28)
- mellea/backends/model_options.py (1)
- mellea/backends/kv_block_helpers.py (2, including user-visible error string)
- mellea/formatters/granite/base/util.py (6)
- mellea/stdlib/session.py (1)
- mellea/core/base.py (1)

HuggingFaceTB/ org names in model IDs (lines 293/298 of model_ids.py)
and all code identifiers/paths are left unchanged.

Closes generative-computing#1279

Assisted-by: Claude Code
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
…at.py, docs/how-to

Completeness audit during review caught four additional occurrences
not covered by the initial sweep (generative-computing#1279 or generative-computing#1256):

- mellea/stdlib/requirements/rag.py:37 — docstring prose
- mellea/stdlib/components/chat.py:145 — inline comment
- docs/docs/how-to/backends-and-configuration.md:36 — table link text
- docs/docs/how-to/safety-guardrails.md:8 — prose sentence

Assisted-by: Claude Code
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
…generative-computing#1279)

Two prose occurrences missed by the initial sweep:
- docs/docs/examples/index.md:83 — table row description
- docs/docs/how-to/safety-guardrails.md:323 — Limitations section

Found during code review completeness audit.

Assisted-by: Claude Code
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
…gface.py (generative-computing#1279)

Lines 265 (Raises docstring) and 342 (user-visible error string) were
not in the issue's explicit file list but are in scope for the brand-name
sweep. Found during pre-merge review audit.

Assisted-by: Claude Code
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
…generative-computing#1279)

Fix missed occurrences of `Huggingface` (lowercase f) and `huggingface`
(all lowercase) in prose, docstrings, and comments. These were invisible
to the initial camelCase-only grep. Detected by a case-insensitive sweep
during pre-merge review.

Files updated:
- mellea/backends/huggingface.py (module docstring, class docstrings, comments, assertion/warning messages)
- mellea/backends/tools.py, ollama.py, adapters/adapter.py (comments and docstrings)
- mellea/formatters/granite/base/util.py (NotImplementedError message)
- mellea/stdlib/requirements/safety/guardian.py (comment)
- docs/examples/aLora/README.md, intrinsics/README.md, rag/README.md (code block comments and prose)

Assisted-by: Claude Code
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
@planetf1
planetf1 marked this pull request as ready for review June 24, 2026 08:58
@planetf1
planetf1 requested review from a team, jakelorocco and nrfulton as code owners June 24, 2026 08:58
@planetf1
planetf1 requested a review from markstur June 24, 2026 08:58
@planetf1
planetf1 enabled auto-merge June 24, 2026 10:01
@planetf1
planetf1 added this pull request to the merge queue Jun 24, 2026
Merged via the queue into generative-computing:main with commit d61204d Jun 24, 2026
11 checks passed
@planetf1
planetf1 deleted the worktree-issue-1279 branch June 24, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(terminology): complete prose sweep in docs/examples/ and Python docstrings (#1192 follow-up)

2 participants