feat: switch hosted OCR CPU actor defaults to Nemotron OCR v2#2295
Conversation
Update remote DEFAULT_INVOKE_URL values, library-mode CI, README/CLI examples, and tests to match Helm v2 defaults (NVIDIA#2239). Clarify that TableStructureCPUActor has no default OCR URL.
Align library-mode CI and README video tests with operator defaults and build.nvidia.com hosted model name (nemotron-ocr-v2).
|
Addressed the |
Documents hosted CPU actor defaults after NVIDIA#2295 lands. Merge NVIDIA#2295 before this PR per eng review.
|
Addressed both review comments in \dde7529a\ and rebased onto latest \main\ (\�5404c05):
Review threads resolved. PR diff remains scoped to the 12 OCR-default files. |
Greptile SummaryThis PR switches hosted OCR defaults and examples to Nemotron OCR v2. The main changes are:
|
| Filename | Overview |
|---|---|
| nemo_retriever/src/nemo_retriever/operators/extract/ocr/cpu_ocr.py | Updates the hosted CPU OCR default endpoint to nemotron-ocr-v2. |
| nemo_retriever/src/nemo_retriever/operators/extract/video/ocr_actor.py | Updates the video frame CPU OCR default endpoint to nemotron-ocr-v2. |
| .github/workflows/integration-test-library-mode.yml | Updates the library-mode integration OCR invoke URL to the hosted v2 endpoint. |
| nemo_retriever/src/nemo_retriever/operators/extract/table/cpu_actor.py | Clarifies that table OCR is only used when an OCR invoke URL is provided. |
Reviews (2): Last reviewed commit: "Merge remote-tracking branch 'upstream/m..." | Re-trigger Greptile
…defaults # Conflicts: # .github/workflows/integration-test-library-mode.yml # nemo_retriever/src/nemo_retriever/operators/extract/chart/cpu_actor.py # nemo_retriever/tests/test_operator_flags_and_cpu_actors.py
|
Rebased onto latest \main\ (\�ec74047) — merge conflicts are resolved. Conflict resolutions:
Hosted OCR v2 defaults remain on the surviving CPU actors (\ocr/cpu_ocr.py, \�ideo/ocr_actor.py), README/CLI examples, and CI. Unit tests green. @charlesbluca — ready for your re-review when you have a moment. |
Unify Helm NIM inventory and NVCF endpoint correlation per Charles review on NVIDIA#2259/NVIDIA#2295. Emphasize hosted OCR v2 language-mode limits; move deploy how-to to owning pages. Includes anchor, column, and answer_llm endpoint follow-ups from PR review.
Summary
Switch hosted/remote CPU OCR actor
DEFAULT_INVOKE_URLvalues fromnemotron-ocr-v1tonemotron-ocr-v2, and align README/CLI examples, library-mode CI, and tests.Draft — for eng review. Split from #2259 per Randy's guidance: docs PR stays docs-only; this change waits for eng sign-off on hosted endpoint readiness.
On
main, hosted defaults remain v1 intentionally (#2021: v2 available locally and in Helm, remote flip deferred).Changes
ocr/cpu_ocr.py,chart/cpu_actor.py,table/cpu_actor.py,video/ocr_actor.pyOCR_INVOKE_URL→ v2PR scope check
main.github/workflows/integration-test-library-mode.yml(OCR invoke URL only)Test plan
pytest nemo_retriever/tests/test_operator_flags_and_cpu_actors.py nemo_retriever/tests/test_video_frame_ocr_actor.pynemotron-ocr-v2