Add policy document conversion pipeline with VLM artifact interpretation #128
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 258 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #128"
general
weight: 0.35
RobuRishabh
Summary
docling-vlm-policyKFP pipeline that combines Docling's standard structural parsing with a VLM (served via KServe) for classifying and interpreting non-text artifacts in policy documentsinterpret_policy_artifactscomponent classifies each extracted image (chart, risk matrix, decision tree, form, screenshot, diagram, other) and interprets it with a type-specific structured prompt, assembling the result inline with<!-- artifact: {type} -->markersregistry.redhat.io/rhaiis/vllm-cuda-rhel9), walkthrough notebook, and full README with architecture, deployment, and evaluation methodologyNew files
kubeflow-pipelines/docling-vlm-policy/— pipeline definition, components, local runner, KServe manifest, READMEnotebooks/use-cases/policy-document-conversion-vlm.ipynb— step-by-step walkthroughDesign
Uses the standard Docling pipeline (not VLM pipeline) for structural conversion with
image_export_mode="referenced"to extract images as PNGs. A separateinterpret_policy_artifactsstep sends each image to an external VLM for classification and type-specific interpretation, then replaces image references in the Markdown with structured interpretations. Reusesimport_pdfs,create_pdf_splits,download_docling_models,docling_convert_standard, anddocling_chunkfrom existing pipelines.Test plan
python policy_convert_pipeline.pyproduces valid YAML/v1/chat/completionsresponds_policy.mdoutput contains<!-- artifact: type -->markers with structured content_artifacts.jsonmetadata matches image count and typesnum_splits=5for parallel processing🤖 Generated with Claude Code