You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mellea_pdf example requires access to geoblocked content - needs global accessible content #373
I tested against a few other non-US locations, and all experienced the same problem of not being able to access the PDF.
Agree with Option 1 as ideal solution.
I’ve prepared a small local patch that asks about the document’s three priority levels, updates the grounding label and README, and disables OCR for this text-based PDF. It retains skip_always and adds no dependency or bundled PDF.
I verified downloading and Docling conversion, plus inference with llama3.2:latest. I haven’t tested the checkout’s default Granite model.
Thanks for testing this — good find on the W3C PDF. A few things before the PR:
Before swapping sources: can you confirm, from the US (where it currently "works"), what the example's output looks like today? Then after switching to the W3C PDF, re-verify from both inside and outside the US that it still runs and gives a sensible answer. That gives us a real before/after.
Confirm the new grounding question is actually answerable from that document's content, not just that Docling parses it.
Test against mellea.start_session()'s actual default model — granite4.2:3b (Ollama), not llama3.2.
On skip_always: this example doesn't use adapters, so recent model/RAG-pipeline changes don't affect your approach. But worth deciding whether it should run in CI at all now it's not geoblocked. Have a look at the marker guide in test/README.md and see what fits — e.g. e2e, ollama is an option, but that would mean changing the example to a structural assertion (type/shape of the result) rather than just printing output, since content checks belong under qualitative, and CI sets CICD=1, which skips qualitative tests, so that marker alone won't get it running there. Your call which way to go — just explain the choice in the PR.
Side note, unrelated to your change: test/README.md:14-16 tells people to ollama pull granite4:micro/micro-h, but the actual default (mellea/stdlib/session.py, IBM_GRANITE_4_2_3B in mellea/backends/model_ids.py) is granite4.2:3b. Docs drifted from the code. If you're already touching docs for this PR, feel free to fix that line too — otherwise no worries, it's unrelated to this issue.
Thanks for the guidance. I’ve completed the local checks with granite4.2:3b, using mellea.start_session() without overrides. Three runs succeeded, including one from another working directory, and correctly explained all three priority levels.
I also inspected the actual prompt: it contains the converted document, including the definitions from page 2’s “Priorities” section.
I changed the markers to e2e, ollama, slow and added structural assertions only. Explicit pytest execution with CICD=1 passed. Current PR CI doesn’t collect Python examples, so I’m not claiming added PR-CI coverage. I also corrected the outdated model-pull instructions.
The US before/after is still pending because I don’t have a verified US environment. I’ve preserved the original example and prepared commands for both versions. Could you or another contributor help run those from the US? I can share the procedure, or open the PR with this limitation documented if that’s easier for review.
Thanks for the thorough verification. We can skip the US check, as it isn't needed to prove correctness: geo-blocking is directional, so a successful run from outside the US already confirms the new source works everywhere, and the old example's output is being replaced anyway.
Activity
psschwei commentedon Jan 28, 2026
I tested against a few other non-US locations, and all experienced the same problem of not being able to access the PDF.
Agree with Option 1 as ideal solution.
jeeth-kataria commentedon Oct 8, 2026
Hi, I’d like to work on this issue. Would replacing the USDA PDF with W3C’s historical WCAG 1.0 checklist be acceptable?
https://www.w3.org/TR/1999/WAI-WEBCONTENT-19990505/full-checklist.pdf
I’ve prepared a small local patch that asks about the document’s three priority levels, updates the grounding label and README, and disables OCR for this text-based PDF. It retains
skip_alwaysand adds no dependency or bundled PDF.I verified downloading and Docling conversion, plus inference with
llama3.2:latest. I haven’t tested the checkout’s default Granite model.planetf1 commentedon Oct 9, 2026
Thanks for testing this — good find on the W3C PDF. A few things before the PR:
mellea.start_session()'s actual default model —granite4.2:3b(Ollama), notllama3.2.skip_always: this example doesn't use adapters, so recent model/RAG-pipeline changes don't affect your approach. But worth deciding whether it should run in CI at all now it's not geoblocked. Have a look at the marker guide intest/README.mdand see what fits — e.g.e2e, ollamais an option, but that would mean changing the example to a structural assertion (type/shape of the result) rather than just printing output, since content checks belong underqualitative, and CI setsCICD=1, which skipsqualitativetests, so that marker alone won't get it running there. Your call which way to go — just explain the choice in the PR.Side note, unrelated to your change:
test/README.md:14-16tells people toollama pull granite4:micro/micro-h, but the actual default (mellea/stdlib/session.py,IBM_GRANITE_4_2_3Binmellea/backends/model_ids.py) isgranite4.2:3b. Docs drifted from the code. If you're already touching docs for this PR, feel free to fix that line too — otherwise no worries, it's unrelated to this issue.Happy to review once you open the PR.
jeeth-kataria commentedon Oct 10, 2026
Thanks for the guidance. I’ve completed the local checks with
granite4.2:3b, usingmellea.start_session()without overrides. Three runs succeeded, including one from another working directory, and correctly explained all three priority levels.I also inspected the actual prompt: it contains the converted document, including the definitions from page 2’s “Priorities” section.
I changed the markers to
e2e, ollama, slowand added structural assertions only. Explicit pytest execution withCICD=1passed. Current PR CI doesn’t collect Python examples, so I’m not claiming added PR-CI coverage. I also corrected the outdated model-pull instructions.The US before/after is still pending because I don’t have a verified US environment. I’ve preserved the original example and prepared commands for both versions. Could you or another contributor help run those from the US? I can share the procedure, or open the PR with this limitation documented if that’s easier for review.
planetf1 commentedon Oct 12, 2026
Thanks for the thorough verification. We can skip the US check, as it isn't needed to prove correctness: geo-blocking is directional, so a successful run from outside the US already confirms the new source works everywhere, and the old example's output is being replaced anyway.
Please go ahead and open the PR.
fix: replace inaccessible PDF in RAG example (generative-computing#1732)