Repository navigation
Conversation
jakelorocco
reviewed
Aug 24, 2026
jakelorocco
left a comment
Contributor
There was a problem hiding this comment.
lgtm; will hold off on approving until the nits are commented on / addressed
|
|
||
| @pytest.mark.qualitative | ||
| @pytest.mark.filterwarnings("ignore::DeprecationWarning") | ||
| def test_context_relevance(backend_4_0): |
Contributor
There was a problem hiding this comment.
I believe the fixture being used here isn't used by another tests. I think we can remove it.
| stacklevel=2, | ||
| ) | ||
| question, context = _resolve_question(question, context, backend) | ||
| document = _coerce_to_document(document) |
Contributor
There was a problem hiding this comment.
I think all the other adapters use coerce_to_documentS. Can we remove this function?
Assisted-by: Codex Signed-off-by: Nigel Jones <[email protected]>
Assisted-by: Codex Signed-off-by: Nigel Jones <[email protected]>
Assisted-by: Codex Signed-off-by: Nigel Jones <[email protected]>
planetf1
force-pushed
the
fix/1338-remove-context-relevance
branch
from
August 25, 2026 11:39
5dad43a to
ebb5eba
Compare
jakelorocco
approved these changes
Aug 25, 2026
Merged
via the queue into
generative-computing:main
with commit Aug 25, 2026
1c48733
11 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Removes the deprecated RAG
check_context_relevance()helper and its Granite4.0-only adapter surface. This clears the unavailable API from registration,
tests, fixtures, examples, and direct documentation, so users are no longer
directed to an adapter without current-model support.
This is cleanup for epic #929, scheduled for the next minor release. It deliberately retains Guardian's separate
CRITERIA_BANK["context_relevance"]criterion: that is an independently supported Guardian check, not the removed RAG adapter function.Removed surface
rag.check_context_relevance()and its adapter catalogue entryDesign notes
There is no direct adapter replacement because this capability was only available
for Granite 4.0 and has no maintained Granite 4.1 implementation. Guardian
criteria using the same name remain in scope and unchanged.
Issue
Fixes #1338
Testing
No new behaviour was added; the obsolete coverage and fixtures were removed.
uv run pytest test/ -m "not qualitative"— 4,013 passed, 48 skipped, 128 deselected, 2 xfailed, 1 xpasseduv run ruff format --check . && uv run ruff check .— passeduv run mypy .— passeddocs/docs/advanced/intrinsics.md— passedAttribution
Adding a new component, requirement, sampling strategy, or tool?
NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.