| name | retriva-pdf-injector-patterns |
| description | Guidance for building a local PDF injector for Retriva. |
Retriva PDF Injector Patterns
Core input shape
The input is a recursive directory containing one or more .pdf files.
Preferred processing flow
- recursively scan the root directory
- detect candidate PDF files
- extract embedded text page by page
- preserve page numbers and document-level metadata
- emit document/chunk objects compatible with the existing indexing pipeline
- keep enough metadata for citations and debugging
Guardrails
- Do not require OCR for PDFs with extractable text
- Skip encrypted or unreadable PDFs gracefully with diagnostics
- Keep chunk metadata page-aware for citations