Skip to content

TN-57663 - Render retained Graph PDFs by document id - #123

Draft
KirillTonic wants to merge 3 commits into
f/subjects-apifrom
tn-57663-render-retained-graph-pdfs
Draft

TN-57663 - Render retained Graph PDFs by document id#123
KirillTonic wants to merge 3 commits into
f/subjects-apifrom
tn-57663-render-retained-graph-pdfs

Conversation

@KirillTonic

@KirillTonic KirillTonic commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add SubjectGraph.render_pdf(document_id) over the retained-source Graph PDF render endpoint
  • keep the random-seed request header contract covered while returning the rendered PDF bytes directly
  • document the precise retained-PDF contract: V5 styles are stored only for initial PII mentions and mentions added by later Graph enrichment, not for every recognized word
  • support the coordinated Solar and Protege pilot implementation listed below

Test plan

  • PYTHONPATH=. pytest -q tests/tests/subject_graph_tests/test_render_pdf.py
  • GitHub ruff check passes on the latest branch head
  • full-corpus retained-source PDF rendering is being exercised by the Protege pilot end-to-end run

Jira: https://tonic-ai.atlassian.net/browse/TN-57663

Related branches and PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant