Skip to content

Remove deprecated check_context_relevance and context_relevance adapter #1338

Closed

Description

@planetf1

Parent epic: #929 | Phase: cleanup (next minor release) | Depends on: —

Background

check_context_relevance() was deprecated in the PR that closes #1301 (per @jakelorocco's recommendation). The adapter is Granite 4.0 only, has no Granite 4.1 version, and will not be updated.

A DeprecationWarning is now emitted at call time. This issue tracks the hard removal at the next minor release.

Files to delete / trim

File Change
mellea/stdlib/components/intrinsic/rag.py Delete check_context_relevance(), import warnings if unused
mellea/backends/adapters/catalog.py Delete context_relevance IntriniscsCatalogEntry
test/stdlib/components/intrinsic/test_rag.py Delete test_context_relevance, test_context_relevance_resolve
test/stdlib/components/intrinsic/test_rag_contracts.py Delete test_check_context_relevance_contract_enforced, test_check_context_relevance_forward_compat (added in #1321)
test/formatters/granite/test_intrinsics_formatters.py Delete context_relevance and context_relevance_alora YamlJsonCombo entries and the pytest.skip block
docs/examples/intrinsics/context_relevance.py Delete file
docs/docs/advanced/intrinsics.md Delete ## Context relevance section
AGENTS.md Delete check_context_relevance table row

Notes

Activity

  1. added
    enhancement
    area/adapter-functions
    on Jun 24, 2026
  2. self-assigned this
    on Aug 10, 2026
  3. added
    p2
    on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/adapter-functionsenhancementp2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions