automated-document-parser 0.1.5__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. automated_document_parser-0.2.0/.dockerignore +23 -0
  2. automated_document_parser-0.2.0/.env.example +17 -0
  3. automated_document_parser-0.2.0/.github/dependabot.yml +17 -0
  4. automated_document_parser-0.2.0/.github/workflows/ci.yml +62 -0
  5. automated_document_parser-0.2.0/.github/workflows/codeql.yml +40 -0
  6. automated_document_parser-0.2.0/.github/workflows/container.yml +171 -0
  7. automated_document_parser-0.2.0/.github/workflows/dependency-audit.yml +59 -0
  8. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/.github/workflows/docs.yml +9 -7
  9. automated_document_parser-0.2.0/.github/workflows/publish.yml +99 -0
  10. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/.gitignore +3 -0
  11. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/.pre-commit-config.yaml +2 -2
  12. automated_document_parser-0.2.0/CHANGELOG.md +92 -0
  13. automated_document_parser-0.2.0/CONTRIBUTING.md +32 -0
  14. automated_document_parser-0.2.0/Dockerfile +42 -0
  15. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/Makefile +30 -11
  16. automated_document_parser-0.2.0/PKG-INFO +849 -0
  17. automated_document_parser-0.2.0/README.md +711 -0
  18. automated_document_parser-0.2.0/RELEASE_CHECKLIST.md +66 -0
  19. automated_document_parser-0.2.0/SECURITY.md +132 -0
  20. automated_document_parser-0.2.0/benchmarks/__init__.py +1 -0
  21. automated_document_parser-0.2.0/benchmarks/data/document_intelligence_v1.json +66 -0
  22. automated_document_parser-0.2.0/benchmarks/data/sample_retrieval.json +28 -0
  23. automated_document_parser-0.2.0/benchmarks/document_evaluation.py +207 -0
  24. automated_document_parser-0.2.0/benchmarks/pipeline_benchmark.py +197 -0
  25. automated_document_parser-0.2.0/benchmarks/results/local-baseline.json +95 -0
  26. automated_document_parser-0.2.0/benchmarks/retrieval_benchmark.py +241 -0
  27. automated_document_parser-0.2.0/benchmarks/run_document_evaluation.py +27 -0
  28. automated_document_parser-0.2.0/benchmarks/run_pipeline_benchmark.py +33 -0
  29. automated_document_parser-0.2.0/benchmarks/run_retrieval_benchmark.py +30 -0
  30. automated_document_parser-0.2.0/compose.yaml +115 -0
  31. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/docs/README.md +35 -5
  32. automated_document_parser-0.2.0/docs/_static/analytics-consent.js +86 -0
  33. automated_document_parser-0.2.0/docs/_static/custom.css +19 -0
  34. automated_document_parser-0.2.0/docs/_templates/layout.html +6 -0
  35. automated_document_parser-0.2.0/docs/api.rst +404 -0
  36. automated_document_parser-0.2.0/docs/backup_restore.rst +84 -0
  37. automated_document_parser-0.2.0/docs/benchmarks.rst +129 -0
  38. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/docs/conf.py +26 -3
  39. automated_document_parser-0.2.0/docs/feature_guide.rst +367 -0
  40. automated_document_parser-0.2.0/docs/index.rst +574 -0
  41. automated_document_parser-0.2.0/docs/monitoring.rst +100 -0
  42. automated_document_parser-0.2.0/docs/roadmap/PR-01-backup-restore.md +39 -0
  43. automated_document_parser-0.2.0/docs/roadmap/PR-02-api-security.md +39 -0
  44. automated_document_parser-0.2.0/docs/roadmap/PR-03-structured-logging.md +39 -0
  45. automated_document_parser-0.2.0/docs/roadmap/PR-04-opentelemetry-tracing.md +39 -0
  46. automated_document_parser-0.2.0/docs/roadmap/PR-05-ci-security.md +39 -0
  47. automated_document_parser-0.2.0/docs/roadmap/PR-06-performance-scalability.md +39 -0
  48. automated_document_parser-0.2.0/docs/roadmap/PR-07-ingestion-reliability.md +39 -0
  49. automated_document_parser-0.2.0/docs/roadmap/PR-08-document-evaluation.md +39 -0
  50. automated_document_parser-0.2.0/docs/roadmap/PR-09-developer-experience.md +39 -0
  51. automated_document_parser-0.2.0/docs/roadmap/PR-10-docs-analytics.md +39 -0
  52. automated_document_parser-0.2.0/docs/roadmap/PR-11-native-pdf-loaders.md +22 -0
  53. automated_document_parser-0.2.0/docs/roadmap/PR-12-comprehensive-documentation.md +43 -0
  54. automated_document_parser-0.2.0/docs/roadmap/PR-13-feature-example-coverage.md +33 -0
  55. automated_document_parser-0.2.0/examples/README.md +75 -0
  56. automated_document_parser-0.2.0/examples/api_and_cli.md +74 -0
  57. automated_document_parser-0.2.0/examples/api_client.py +86 -0
  58. automated_document_parser-0.2.0/examples/api_in_process.py +93 -0
  59. automated_document_parser-0.2.0/examples/custom_retrieval_adapters.py +55 -0
  60. automated_document_parser-0.2.0/examples/full_workflow.py +149 -0
  61. automated_document_parser-0.2.0/examples/intelligence_and_privacy.py +111 -0
  62. automated_document_parser-0.2.0/examples/operations_jobs_backup.py +76 -0
  63. automated_document_parser-0.2.0/examples/parsing_formats_and_limits.py +74 -0
  64. automated_document_parser-0.2.0/examples/pdf_backends.py +63 -0
  65. automated_document_parser-0.2.0/examples/retrieval_and_evaluation.py +88 -0
  66. automated_document_parser-0.2.0/examples/security_boundaries.md +31 -0
  67. automated_document_parser-0.2.0/examples/semantic_embeddings.py +60 -0
  68. automated_document_parser-0.2.0/examples/worker_lifecycle.py +45 -0
  69. automated_document_parser-0.2.0/monitoring/grafana/dashboards/adp-overview.json +446 -0
  70. automated_document_parser-0.2.0/monitoring/grafana/provisioning/dashboards/dashboard.yml +11 -0
  71. automated_document_parser-0.2.0/monitoring/grafana/provisioning/datasources/prometheus.yml +10 -0
  72. automated_document_parser-0.2.0/monitoring/prometheus/alerts.yml +40 -0
  73. automated_document_parser-0.2.0/monitoring/prometheus/prometheus.yml +18 -0
  74. automated_document_parser-0.2.0/notebook_examples/01_parsing_formats_and_limits.ipynb +56 -0
  75. automated_document_parser-0.2.0/notebook_examples/02_intelligence_and_privacy.ipynb +45 -0
  76. automated_document_parser-0.2.0/notebook_examples/03_retrieval_and_evaluation.ipynb +95 -0
  77. automated_document_parser-0.2.0/notebook_examples/04_operations_jobs_and_recovery.ipynb +64 -0
  78. automated_document_parser-0.2.0/notebook_examples/05_pdf_backends_and_ocr.ipynb +67 -0
  79. automated_document_parser-0.2.0/notebook_examples/06_api_cli_and_monitoring.ipynb +83 -0
  80. automated_document_parser-0.2.0/notebook_examples/07_benchmarks_and_quality_evaluation.ipynb +52 -0
  81. automated_document_parser-0.2.0/notebook_examples/README.md +45 -0
  82. automated_document_parser-0.2.0/notebook_examples/rag_example.ipynb +496 -0
  83. automated_document_parser-0.2.0/pyproject.toml +126 -0
  84. automated_document_parser-0.2.0/requirements.txt +3289 -0
  85. automated_document_parser-0.2.0/src/automated_document_parser/__init__.py +128 -0
  86. automated_document_parser-0.2.0/src/automated_document_parser/__main__.py +6 -0
  87. automated_document_parser-0.2.0/src/automated_document_parser/api.py +641 -0
  88. automated_document_parser-0.2.0/src/automated_document_parser/backup.py +293 -0
  89. automated_document_parser-0.2.0/src/automated_document_parser/cli.py +467 -0
  90. automated_document_parser-0.2.0/src/automated_document_parser/client.py +160 -0
  91. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/config.py +8 -6
  92. automated_document_parser-0.2.0/src/automated_document_parser/core.py +164 -0
  93. automated_document_parser-0.2.0/src/automated_document_parser/ingestion.py +385 -0
  94. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/__init__.py +24 -0
  95. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/analyzer.py +45 -0
  96. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/classification.py +123 -0
  97. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/entities.py +223 -0
  98. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/extraction.py +239 -0
  99. automated_document_parser-0.2.0/src/automated_document_parser/intelligence/models.py +79 -0
  100. automated_document_parser-0.2.0/src/automated_document_parser/jobs.py +693 -0
  101. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/__init__.py +9 -10
  102. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/file_load/__init__.py +2 -4
  103. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/file_load/base.py +1 -4
  104. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_load/csv_loader.py +36 -0
  105. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_load/docx_loader.py +45 -0
  106. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_load/html_loader.py +98 -0
  107. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_load/json_loader.py +57 -0
  108. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_load/text_loader.py +28 -0
  109. automated_document_parser-0.2.0/src/automated_document_parser/loaders/file_loaders.py +264 -0
  110. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/__init__.py +17 -18
  111. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/base.py +3 -4
  112. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/loader.py +19 -21
  113. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/mathpix_loader.py +1 -2
  114. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/opendataloader_loader.py +1 -2
  115. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/pdfplumber_layout_loader.py +590 -0
  116. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/pdfplumber_loader.py +99 -0
  117. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/pymupdf4llm_loader.py +1 -2
  118. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/pymupdf_loader.py +72 -0
  119. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/pypdf_loader.py +56 -0
  120. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/pypdfium2_loader.py +74 -0
  121. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/loaders/pdf_load/textract_loader.py +1 -2
  122. automated_document_parser-0.2.0/src/automated_document_parser/loaders/pdf_load/unstructured_loader.py +65 -0
  123. automated_document_parser-0.2.0/src/automated_document_parser/loaders/security.py +48 -0
  124. automated_document_parser-0.2.0/src/automated_document_parser/logging_config.py +226 -0
  125. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/main.py +1 -1
  126. automated_document_parser-0.2.0/src/automated_document_parser/models.py +117 -0
  127. automated_document_parser-0.2.0/src/automated_document_parser/observability.py +74 -0
  128. automated_document_parser-0.2.0/src/automated_document_parser/processor.py +183 -0
  129. automated_document_parser-0.2.0/src/automated_document_parser/py.typed +0 -0
  130. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/__init__.py +37 -0
  131. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/chunking.py +125 -0
  132. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/embeddings.py +160 -0
  133. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/evaluation.py +63 -0
  134. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/hybrid.py +137 -0
  135. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/lexical.py +57 -0
  136. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/models.py +74 -0
  137. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/sqlite_store.py +346 -0
  138. automated_document_parser-0.2.0/src/automated_document_parser/retrieval/stores.py +89 -0
  139. automated_document_parser-0.2.0/src/automated_document_parser/transformation/__init__.py +27 -0
  140. automated_document_parser-0.2.0/src/automated_document_parser/transformation/chunking.py +136 -0
  141. automated_document_parser-0.2.0/src/automated_document_parser/transformation/deduplication.py +94 -0
  142. automated_document_parser-0.2.0/src/automated_document_parser/transformation/models.py +69 -0
  143. automated_document_parser-0.2.0/src/automated_document_parser/transformation/normalization.py +88 -0
  144. automated_document_parser-0.2.0/src/automated_document_parser/transformation/privacy.py +257 -0
  145. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/src/automated_document_parser/utils.py +3 -4
  146. automated_document_parser-0.2.0/test/retrieval/test_benchmark.py +125 -0
  147. automated_document_parser-0.2.0/test/retrieval/test_openai_embedder.py +186 -0
  148. automated_document_parser-0.2.0/test/retrieval/test_retrieval.py +203 -0
  149. automated_document_parser-0.2.0/test/retrieval/test_sqlite_store.py +243 -0
  150. automated_document_parser-0.2.0/test/security/fixtures/prompt_injection.txt +7 -0
  151. automated_document_parser-0.2.0/test/security/test_file_resource_limits.py +118 -0
  152. automated_document_parser-0.2.0/test/security/test_untrusted_document_content.py +43 -0
  153. automated_document_parser-0.2.0/test/test_api.py +631 -0
  154. automated_document_parser-0.2.0/test/test_backup.py +205 -0
  155. automated_document_parser-0.2.0/test/test_cli.py +251 -0
  156. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_core.py +38 -1
  157. automated_document_parser-0.2.0/test/test_docs_analytics.py +33 -0
  158. automated_document_parser-0.2.0/test/test_document_evaluation.py +61 -0
  159. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_file_loaders.py +78 -1
  160. automated_document_parser-0.2.0/test/test_ingestion.py +295 -0
  161. automated_document_parser-0.2.0/test/test_intelligence.py +365 -0
  162. automated_document_parser-0.2.0/test/test_jobs.py +391 -0
  163. automated_document_parser-0.2.0/test/test_logging_config.py +158 -0
  164. automated_document_parser-0.2.0/test/test_models.py +36 -0
  165. automated_document_parser-0.2.0/test/test_pdf_layout_loader.py +452 -0
  166. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_pdf_loaders.py +180 -186
  167. automated_document_parser-0.2.0/test/test_pipeline_benchmark.py +34 -0
  168. automated_document_parser-0.2.0/test/test_public_api.py +134 -0
  169. automated_document_parser-0.2.0/test/test_transformation.py +352 -0
  170. automated_document_parser-0.1.5/.github/workflows/ci.yml +0 -38
  171. automated_document_parser-0.1.5/.github/workflows/publish.yml +0 -73
  172. automated_document_parser-0.1.5/PKG-INFO +0 -127
  173. automated_document_parser-0.1.5/README.md +0 -68
  174. automated_document_parser-0.1.5/docs/api.rst +0 -188
  175. automated_document_parser-0.1.5/docs/index.rst +0 -131
  176. automated_document_parser-0.1.5/docs/modules.rst +0 -9
  177. automated_document_parser-0.1.5/notebook_examples/rag_example.ipynb +0 -955
  178. automated_document_parser-0.1.5/pyproject.toml +0 -58
  179. automated_document_parser-0.1.5/requirements.txt +0 -295
  180. automated_document_parser-0.1.5/src/automated_document_parser/__init__.py +0 -7
  181. automated_document_parser-0.1.5/src/automated_document_parser/core.py +0 -110
  182. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_load/csv_loader.py +0 -56
  183. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_load/docx_loader.py +0 -55
  184. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_load/html_loader.py +0 -55
  185. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_load/json_loader.py +0 -59
  186. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_load/text_loader.py +0 -58
  187. automated_document_parser-0.1.5/src/automated_document_parser/loaders/file_loaders.py +0 -154
  188. automated_document_parser-0.1.5/src/automated_document_parser/loaders/pdf_load/pdfplumber_loader.py +0 -60
  189. automated_document_parser-0.1.5/src/automated_document_parser/loaders/pdf_load/pymupdf_loader.py +0 -60
  190. automated_document_parser-0.1.5/src/automated_document_parser/loaders/pdf_load/pypdf_loader.py +0 -51
  191. automated_document_parser-0.1.5/src/automated_document_parser/loaders/pdf_load/pypdfium2_loader.py +0 -60
  192. automated_document_parser-0.1.5/src/automated_document_parser/loaders/pdf_load/unstructured_loader.py +0 -72
  193. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/LICENSE +0 -0
  194. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/docs/.nojekyll +0 -0
  195. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/docs/Makefile +0 -0
  196. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/notebook_examples/sample_docs/data.csv +0 -0
  197. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/notebook_examples/sample_docs/machine_learning.txt +0 -0
  198. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/notebook_examples/sample_docs/python_basics.txt +0 -0
  199. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/__init__.py +0 -0
  200. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_config.py +0 -0
  201. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_main.py +0 -0
  202. {automated_document_parser-0.1.5 → automated_document_parser-0.2.0}/test/test_utils.py +0 -0
@@ -0,0 +1,23 @@
1
+ .git
2
+ .github
3
+ .venv
4
+ venv
5
+ __pycache__
6
+ .pytest_cache
7
+ .ruff_cache
8
+ .coverage
9
+ coverage.xml
10
+ htmlcov
11
+ dist
12
+ build
13
+ *.egg-info
14
+ docs
15
+ test
16
+ tests
17
+ benchmarks
18
+ notebook_examples
19
+ .adp
20
+ .env
21
+ .env.*
22
+ !.env.example
23
+ .DS_Store
@@ -0,0 +1,17 @@
1
+ # Generate a unique secret before starting the service:
2
+ # python -c "import secrets; print(secrets.token_urlsafe(48))"
3
+ ADP_API_KEY=replace-with-a-long-random-secret
4
+ ADP_PORT=8000
5
+
6
+ # hashing is local and dependency-free, but is not semantic.
7
+ # Set to openai-compatible and provide OPENAI_API_KEY for semantic embeddings.
8
+ ADP_EMBEDDING_BACKEND=hashing
9
+ ADP_EMBEDDING_MODEL=text-embedding-3-small
10
+ OPENAI_API_KEY=
11
+
12
+ # Optional Prometheus and Grafana monitoring profile
13
+ ADP_API_KEY_FILE=.secrets/adp_api_key
14
+ GRAFANA_ADMIN_USER=admin
15
+ GRAFANA_ADMIN_PASSWORD=replace-with-a-long-random-password
16
+ PROMETHEUS_PORT=9090
17
+ GRAFANA_PORT=3000
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ open-pull-requests-limit: 5
8
+ labels:
9
+ - dependencies
10
+ - ci
11
+ - package-ecosystem: pip
12
+ directory: /
13
+ schedule:
14
+ interval: weekly
15
+ open-pull-requests-limit: 5
16
+ labels:
17
+ - dependencies
@@ -0,0 +1,62 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main ]
6
+ pull_request:
7
+ branches: [ master, main ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ test:
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ python-version: ['3.11', '3.12', '3.13', '3.14']
23
+
24
+ steps:
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
26
+
27
+ - name: Set up Python
28
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+
32
+ - name: Install OCR system dependency
33
+ run: |
34
+ sudo apt-get update
35
+ sudo apt-get install -y tesseract-ocr
36
+
37
+ - name: Install uv
38
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
39
+ with:
40
+ enable-cache: true
41
+
42
+ - name: Install dependencies
43
+ run: uv sync --extra dev --extra json --extra pdf-layout --extra ocr --extra pdf-images --extra pdf-unstructured --extra openai --extra api
44
+
45
+ - name: Run Ruff lint
46
+ run: uv run --no-sync ruff check . --exclude "*.ipynb"
47
+
48
+ - name: Run Ruff format check
49
+ run: uv run --no-sync ruff format --check
50
+
51
+ - name: Build and validate distributions
52
+ run: |
53
+ uv run --no-sync python -m build
54
+ uv run --no-sync python -m twine check dist/*
55
+
56
+ - name: Run pytest with coverage
57
+ run: uv run --no-sync python -m pytest --cov --cov-branch --cov-report=xml --cov-fail-under=85
58
+
59
+ - name: Upload coverage reports to Codecov
60
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
61
+ with:
62
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,40 @@
1
+ name: CodeQL Security Analysis
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+ schedule:
9
+ - cron: '23 5 * * 1'
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: codeql-${{ github.event.pull_request.number || github.ref }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ analyze:
21
+ name: Analyze Python
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ actions: read
25
+ contents: read
26
+ security-events: write
27
+ steps:
28
+ - name: Checkout
29
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
30
+
31
+ - name: Initialize CodeQL
32
+ uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
33
+ with:
34
+ languages: python
35
+ build-mode: none
36
+
37
+ - name: Perform CodeQL analysis
38
+ uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
39
+ with:
40
+ category: /language:python
@@ -0,0 +1,171 @@
1
+ name: Container Build and Smoke Test
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [master, main]
6
+ paths:
7
+ - 'Dockerfile'
8
+ - '.dockerignore'
9
+ - 'compose.yaml'
10
+ - 'monitoring/**'
11
+ - '.env.example'
12
+ - 'src/**'
13
+ - 'pyproject.toml'
14
+ - 'README.md'
15
+ - '.github/workflows/container.yml'
16
+ push:
17
+ branches: [master]
18
+ paths:
19
+ - 'Dockerfile'
20
+ - '.dockerignore'
21
+ - 'compose.yaml'
22
+ - 'monitoring/**'
23
+ - '.env.example'
24
+ - 'src/**'
25
+ - 'pyproject.toml'
26
+ - 'README.md'
27
+ - '.github/workflows/container.yml'
28
+ workflow_dispatch:
29
+
30
+ permissions:
31
+ contents: read
32
+
33
+ concurrency:
34
+ group: container-${{ github.event.pull_request.number || github.ref }}
35
+ cancel-in-progress: true
36
+
37
+ jobs:
38
+ container:
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
42
+
43
+ - name: Validate monitoring configuration
44
+ env:
45
+ ADP_API_KEY: ci-monitoring-secret
46
+ GRAFANA_ADMIN_PASSWORD: ci-grafana-secret
47
+ run: |
48
+ umask 077
49
+ mkdir -p .secrets
50
+ chmod 700 .secrets
51
+ printf '%s' "$ADP_API_KEY" > .secrets/adp_api_key
52
+ chmod 444 .secrets/adp_api_key
53
+ docker compose --profile monitoring config --quiet
54
+ docker run --rm --entrypoint=/bin/promtool \
55
+ --volume "$PWD/monitoring/prometheus:/etc/prometheus:ro" \
56
+ --volume "$PWD/.secrets/adp_api_key:/run/secrets/adp_api_key:ro" \
57
+ prom/prometheus:v3.5.0 check config /etc/prometheus/prometheus.yml
58
+ docker run --rm --entrypoint=/bin/promtool --volume "$PWD/monitoring/prometheus:/etc/prometheus:ro" \
59
+ prom/prometheus:v3.5.0 check rules /etc/prometheus/alerts.yml
60
+ python -m json.tool monitoring/grafana/dashboards/adp-overview.json >/dev/null
61
+
62
+ - name: Build production image
63
+ run: docker build --pull -t automated-document-parser:ci .
64
+
65
+ - name: Run container smoke test
66
+ shell: bash
67
+ run: |
68
+ set -euo pipefail
69
+ mkdir -p "$RUNNER_TEMP/adp-documents"
70
+ docker volume create adp-data-ci >/dev/null
71
+ cleanup() {
72
+ docker logs adp-container-ci || true
73
+ docker rm -f adp-container-ci >/dev/null 2>&1 || true
74
+ docker volume rm adp-data-ci >/dev/null 2>&1 || true
75
+ }
76
+ trap cleanup EXIT
77
+
78
+ docker run --detach --name adp-container-ci --read-only --tmpfs /tmp:rw,noexec,nosuid,size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges:true --publish 127.0.0.1:18000:8000 --env ADP_API_KEY=ci-smoke-test-secret --volume "$RUNNER_TEMP/adp-documents:/documents:ro" --volume adp-data-ci:/data automated-document-parser:ci
79
+
80
+ for attempt in $(seq 1 30); do
81
+ if curl --silent --fail http://127.0.0.1:18000/readyz >/dev/null; then
82
+ break
83
+ fi
84
+ if [ "$attempt" -eq 30 ]; then
85
+ echo "Container did not become ready"
86
+ exit 1
87
+ fi
88
+ sleep 2
89
+ done
90
+
91
+ curl --silent --show-error --fail http://127.0.0.1:18000/healthz >/dev/null
92
+ test "$(curl --silent --output /dev/null --write-out '%{http_code}' http://127.0.0.1:18000/metrics)" = "401"
93
+ curl --silent --show-error --fail --header 'X-API-Key: ci-smoke-test-secret' http://127.0.0.1:18000/metrics | grep -q 'adp_http_requests_total'
94
+ test "$(docker inspect --format '{{.Config.User}}' adp-container-ci)" = "10001:10001"
95
+
96
+ for attempt in $(seq 1 30); do
97
+ health_status="$(docker inspect --format '{{.State.Health.Status}}' adp-container-ci)"
98
+ if [ "$health_status" = "healthy" ]; then
99
+ break
100
+ fi
101
+ if [ "$health_status" = "unhealthy" ] || [ "$attempt" -eq 30 ]; then
102
+ echo "Container health check did not become healthy (status: $health_status)"
103
+ docker inspect --format '{{json .State.Health}}' adp-container-ci
104
+ exit 1
105
+ fi
106
+ sleep 2
107
+ done
108
+
109
+ - name: Run monitoring stack smoke test
110
+ shell: bash
111
+ env:
112
+ ADP_API_KEY: ci-monitoring-secret
113
+ GRAFANA_ADMIN_PASSWORD: ci-grafana-secret
114
+ run: |
115
+ set -euo pipefail
116
+ mkdir -p documents
117
+ cleanup() {
118
+ docker compose --profile monitoring down --volumes --remove-orphans || true
119
+ }
120
+ trap cleanup EXIT
121
+
122
+ export ADP_API_KEY GRAFANA_ADMIN_PASSWORD
123
+ umask 077
124
+ mkdir -p .secrets
125
+ chmod 700 .secrets
126
+ # The config-validation step has already made this file read-only.
127
+ chmod 600 .secrets/adp_api_key
128
+ printf '%s' "$ADP_API_KEY" > .secrets/adp_api_key
129
+ chmod 444 .secrets/adp_api_key
130
+ docker compose --profile monitoring up --build --detach
131
+
132
+ for attempt in $(seq 1 45); do
133
+ if curl --silent --fail http://127.0.0.1:9090/-/ready >/dev/null \
134
+ && curl --silent --fail http://127.0.0.1:3000/api/health >/dev/null; then
135
+ break
136
+ fi
137
+ if [ "$attempt" -eq 45 ]; then
138
+ docker compose --profile monitoring logs
139
+ echo "Monitoring services did not become ready"
140
+ exit 1
141
+ fi
142
+ sleep 2
143
+ done
144
+
145
+ for attempt in $(seq 1 30); do
146
+ targets="$(curl --silent --show-error --fail http://127.0.0.1:9090/api/v1/targets)"
147
+ if echo "$targets" | jq -e '[.data.activeTargets[] | select(.labels.job == "automated-document-parser" and .health == "up")] | length > 0' >/dev/null; then
148
+ break
149
+ fi
150
+ if [ "$attempt" -eq 30 ]; then
151
+ echo "$targets" | jq .
152
+ docker compose --profile monitoring logs prometheus api
153
+ echo "Prometheus could not scrape the authenticated ADP metrics endpoint"
154
+ exit 1
155
+ fi
156
+ sleep 2
157
+ done
158
+
159
+ for attempt in $(seq 1 30); do
160
+ dashboards="$(curl --silent --show-error --fail --user "admin:$GRAFANA_ADMIN_PASSWORD" 'http://127.0.0.1:3000/api/search?query=ADP%20Operations%20Overview')"
161
+ if echo "$dashboards" | jq -e 'any(.[]; .uid == "adp-operations")' >/dev/null; then
162
+ break
163
+ fi
164
+ if [ "$attempt" -eq 30 ]; then
165
+ echo "$dashboards" | jq .
166
+ docker compose --profile monitoring logs grafana
167
+ echo "Provisioned ADP Grafana dashboard was not found"
168
+ exit 1
169
+ fi
170
+ sleep 2
171
+ done
@@ -0,0 +1,59 @@
1
+ name: Dependency Security Audit
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '17 6 * * 1'
6
+ workflow_dispatch:
7
+ pull_request:
8
+ paths:
9
+ - 'pyproject.toml'
10
+ - 'requirements.txt'
11
+ - '.github/workflows/dependency-audit.yml'
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ concurrency:
17
+ group: dependency-audit-${{ github.event.pull_request.number || github.ref }}
18
+ cancel-in-progress: true
19
+
20
+ jobs:
21
+ audit:
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ python-version: ['3.11', '3.12', '3.13', '3.14']
27
+ steps:
28
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
29
+
30
+ - name: Set up Python
31
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
32
+ with:
33
+ python-version: ${{ matrix.python-version }}
34
+
35
+ - name: Install uv
36
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
37
+ with:
38
+ enable-cache: true
39
+
40
+ - name: Resolve the latest compatible versions across all extras
41
+ run: |
42
+ uv pip compile pyproject.toml --upgrade --python-version ${{ matrix.python-version }} --generate-hashes --extra all --extra api --extra dev --extra docs --output-file /tmp/requirements-all.txt > /dev/null
43
+
44
+ - name: Audit all optional dependency groups and generate an SBOM
45
+ run: |
46
+ uvx --from pip-audit pip-audit \
47
+ -r /tmp/requirements-all.txt \
48
+ --no-deps \
49
+ --disable-pip \
50
+ --format cyclonedx-json \
51
+ --output "$GITHUB_WORKSPACE/adp-sbom.json"
52
+
53
+ - name: Upload dependency SBOM
54
+ if: always() && hashFiles('adp-sbom.json') != ''
55
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
56
+ with:
57
+ name: dependency-sbom-python-${{ matrix.python-version }}
58
+ path: adp-sbom.json
59
+ retention-days: 90
@@ -22,28 +22,30 @@ concurrency:
22
22
  jobs:
23
23
  build:
24
24
  runs-on: ubuntu-latest
25
+ env:
26
+ GOOGLE_ANALYTICS_ID: ${{ vars.GOOGLE_ANALYTICS_ID }}
27
+ ADP_DOCS_ANALYTICS_ENABLED: ${{ vars.ADP_DOCS_ANALYTICS_ENABLED }}
25
28
  steps:
26
29
  - name: Checkout
27
- uses: actions/checkout@v4
30
+ uses: actions/checkout@v7
28
31
 
29
32
  - name: Set up Python
30
- uses: actions/setup-python@v5
33
+ uses: actions/setup-python@v7
31
34
  with:
32
35
  python-version: '3.13'
33
36
 
34
37
  - name: Install dependencies
35
38
  run: |
36
39
  python -m pip install --upgrade pip
37
- pip install sphinx sphinx-rtd-theme
38
- pip install -e .
40
+ pip install -e ".[docs]"
39
41
 
40
42
  - name: Build documentation
41
43
  run: |
42
44
  cd docs
43
- make html
45
+ make html SPHINXOPTS="-W"
44
46
 
45
47
  - name: Upload artifact
46
- uses: actions/upload-pages-artifact@v3
48
+ uses: actions/upload-pages-artifact@v5
47
49
  with:
48
50
  path: docs/_build/html
49
51
 
@@ -57,4 +59,4 @@ jobs:
57
59
  steps:
58
60
  - name: Deploy to GitHub Pages
59
61
  id: deployment
60
- uses: actions/deploy-pages@v4
62
+ uses: actions/deploy-pages@v5
@@ -0,0 +1,99 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: publish-${{ github.ref }}
14
+ cancel-in-progress: false
15
+
16
+ jobs:
17
+ build-and-publish:
18
+ if: startsWith(github.ref, 'refs/tags/v')
19
+ permissions:
20
+ contents: write
21
+ id-token: write
22
+ runs-on: ubuntu-latest
23
+ environment:
24
+ name: pypi
25
+ url: https://pypi.org/p/automated-document-parser
26
+ steps:
27
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
28
+ with:
29
+ fetch-depth: 0
30
+
31
+ - name: Set up Python
32
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
33
+ with:
34
+ python-version: '3.13'
35
+
36
+ - name: Install uv
37
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
38
+ with:
39
+ enable-cache: true
40
+
41
+ - name: Verify release tag and changelog
42
+ shell: bash
43
+ run: |
44
+ VERSION=$(uv run --no-project python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
45
+ TAG_VERSION="${GITHUB_REF#refs/tags/v}"
46
+ if [[ "$TAG_VERSION" != "$VERSION" ]]; then
47
+ echo "Tag version ($TAG_VERSION) does not match pyproject.toml ($VERSION)."
48
+ exit 1
49
+ fi
50
+ if ! grep -Fq "## [$VERSION] - " CHANGELOG.md; then
51
+ echo "CHANGELOG.md needs a dated release heading for [$VERSION]."
52
+ exit 1
53
+ fi
54
+ if grep -Fq "## [$VERSION] - Unreleased" CHANGELOG.md; then
55
+ echo "The [$VERSION] changelog section is still marked Unreleased."
56
+ exit 1
57
+ fi
58
+ git fetch origin master
59
+ git merge-base --is-ancestor "$GITHUB_SHA" origin/master || {
60
+ echo "Release tag must point to a commit reachable from master."
61
+ exit 1
62
+ }
63
+ echo "Verified release version $VERSION"
64
+
65
+ - name: Install release validation dependencies
66
+ run: uv sync --extra dev --extra docs --extra json --extra pdf-layout --extra ocr --extra pdf-images --extra pdf-unstructured --extra openai --extra api
67
+
68
+ - name: Run release checks
69
+ run: |
70
+ uv run --no-sync ruff check . --exclude "*.ipynb"
71
+ uv run --no-sync ruff format --check
72
+ uv run --no-sync python -m pytest --cov --cov-branch --cov-fail-under=85
73
+ uv run --no-sync sphinx-build -b html -W --keep-going docs /tmp/adp-release-docs
74
+ uv run --no-sync python -m build
75
+ uv run --no-sync python -m twine check dist/*
76
+
77
+ - name: Smoke-test built wheel in a clean environment
78
+ shell: bash
79
+ run: |
80
+ uv venv /tmp/release-smoke
81
+ uv pip install --python /tmp/release-smoke/bin/python dist/*.whl
82
+ /tmp/release-smoke/bin/python -c "import automated_document_parser; print('package import OK')"
83
+
84
+ - name: Publish to PyPI using trusted publishing
85
+ uses: pypa/gh-action-pypi-publish@release/v1
86
+
87
+ - name: Create GitHub Release
88
+ uses: softprops/action-gh-release@v3
89
+ with:
90
+ name: Release ${{ github.ref_name }}
91
+ body: |
92
+ Release ${{ github.ref_name }}.
93
+
94
+ See [CHANGELOG](https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md) for details.
95
+ files: |
96
+ dist/*.whl
97
+ dist/*.tar.gz
98
+ draft: false
99
+ prerelease: false
@@ -89,3 +89,6 @@ uv.lock
89
89
  docs/_build/
90
90
  docs/_autosummary/
91
91
 
92
+
93
+ # Local Compose secrets
94
+ .secrets/
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.8.4
3
+ rev: v0.14.4
4
4
  hooks:
5
5
  # Run the linter
6
6
  - id: ruff
@@ -12,7 +12,7 @@ repos:
12
12
  hooks:
13
13
  - id: pytest
14
14
  name: pytest
15
- entry: bash -c 'uv run pytest'
15
+ entry: bash -c 'uv run --extra dev python -m pytest'
16
16
  language: system
17
17
  pass_filenames: false
18
18
  always_run: true
@@ -0,0 +1,92 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here.
4
+
5
+ ## [0.2.0] - 2026-11-30
6
+
7
+ ### Added
8
+ - Add an offline end-to-end ingestion, extraction, indexing, retrieval and SQLite queue benchmark with percentile and memory reporting.
9
+ - Harden GitHub Actions permissions, pin workflow actions, add CodeQL analysis and Dependabot update automation.
10
+ - Add bounded per-client API rate limiting, structured security audit events, response security headers, and configurable CLI limits.
11
+ - Add an opt-in Prometheus and Grafana Compose profile with provisioned operational dashboards, alert rules and persistent monitoring data.
12
+ - Support standard Bearer-token authentication alongside the existing X-API-Key header for Prometheus scraping.
13
+ - Add a hardened non-root Docker image, single-host Docker Compose deployment, and container build/smoke-test workflow.
14
+ - Add Prometheus HTTP metrics, durable queue/worker gauges, and separate liveness/readiness probes.
15
+ - Add opt-in structured JSON logging, request/job correlation IDs, API access events and ingestion-stage timing summaries.
16
+ - Add configurable CLI log levels and propagate request IDs in API responses.
17
+
18
+ - Add an `adp` command-line interface for document inspection, persistent ingestion and search.
19
+ - Add an optional FastAPI service with path-restricted ingestion, authenticated endpoints, search and health reporting.
20
+ - Revalidate allowed source paths and file sizes immediately before background processing to reduce file-replacement and symlink races.
21
+ - Add a durable SQLite job queue with worker recovery, bounded retries, cancellation, manual retry, pause/resume controls and operational counts.
22
+
23
+
24
+
25
+ - Replace LangChain Community wrappers in local PyMuPDF and PDFium backends with native implementations and keep their extras independent.
26
+ - Add human-readable log output alongside JSON, structured secret redaction and CLI log-format selection.
27
+ - Make documentation-site GA4 tracking opt-in and consent-gated, with analytics-free local/PR builds and privacy documentation.
28
+ - Add a typed, dependency-free synchronous Python client for job lifecycle operations and retrieval search.
29
+ - Add an offline, license-safe document intelligence evaluation corpus and quality metrics for text, classification, entities and schema extraction.
30
+ - Add durable ingestion idempotency keys, retry classification and jittered exponential backoff with configurable worker policy.
31
+ - Add local-first SQLite backup and restore commands using SQLite online backup, SHA-256 manifests, integrity validation, atomic staging and configurable retention.
32
+ - End-to-end document ingestion orchestration with configurable normalization, optional PII redaction, classification, entity/schema extraction, structure-aware chunking, embeddings and vector indexing.
33
+ - Sequential batch ingestion with per-source failure reporting and stage-level timing metrics.
34
+ - Source replacement and chunk hydration in built-in vector stores to support repeatable indexing and retrieval after reopening SQLite.
35
+ - Added structure-aware document chunking with page, element and source-offset provenance.
36
+ - Added conservative Unicode and text-layout normalization on immutable document copies.
37
+ - Added exact and near-duplicate element detection for individual documents.
38
+ - Added local PII detection and non-destructive redaction with value-free audit metadata.
39
+ - Added deterministic document classification with ranked candidates and explainable signals.
40
+ - Added evidence-linked entity extraction for common business document values.
41
+ - Added flat schema-guided extraction with aliases, type checks, required-field reporting and source evidence.
42
+ - Added a pluggable schema-extraction backend protocol for optional model-backed integrations.
43
+ - Added optional Tesseract OCR fallback for scanned or text-poor PDF pages, with word-derived confidence scores and source coordinates.
44
+ - Added opt-in extraction of embedded PDF image regions as PNG artifacts with page coordinates and provenance metadata.
45
+ - Added an optional pdfplumber layout backend for ordered headings, paragraphs, tables and source coordinates.
46
+ - Added a native page-level pdfplumber backend, removing its dependency on LangChain Community.
47
+ - Extended normalized elements with bounding boxes, reading order and confidence fields.
48
+ - Introduced `DocumentProcessor` as the recommended high-level processing API.
49
+ - Added `ParsedDocument` and `DocumentElement` models with source metadata, per-element provenance, JSON serialisation and LangChain conversion.
50
+ - Added optional dependency groups for JSON, HTML, advanced PDF backends, AI, vector search and documentation.
51
+ - Added Python 3.11 through 3.14 support to the CI matrix.
52
+
53
+ ### Changed
54
+ - Preserved the existing `DocumentParser` API for backwards compatibility.
55
+ - Corrected encoding propagation for text and CSV loaders.
56
+ - Added strict error propagation as an opt-in mode for batch parsing.
57
+ - Removed the incorrect `.doc` to `.docx` extension mapping.
58
+ - Aligned package and documentation versions.
59
+ - Consolidated Google Analytics into the Sphinx theme integration.
60
+ - Improved Ruff compliance, documentation generation and package build validation.
61
+
62
+ ### Fixed
63
+ - Corrected stale install instructions for TestPyPI.
64
+ - Fixed documentation build warnings and duplicate analytics injection.
65
+
66
+
67
+ ### Retrieval, security and provider additions
68
+ - Add a standard-library SQLite vector store with durable indexing, atomic upserts, provenance round-tripping, and exact cosine search.
69
+ - Add stable chunk identities so BM25 and persistent vector results fuse without duplicate candidates.
70
+ - Allow retrievers to reuse precomputed persistent embeddings without re-embedding documents.
71
+ - Add SQLite persistence, embedding-provider contract, and end-to-end ingestion/retrieval tests.
72
+ - Add an optional OpenAI-compatible embedding adapter with lazy SDK loading, configurable endpoints, bounded batching, and strict response validation.
73
+ - Add a reproducible retrieval benchmark harness for BM25, vector, and hybrid ranking with graded relevance labels and dataset fingerprints.
74
+ - Add default file-size and DOCX ZIP preflight limits with configurable per-upload overrides.
75
+ - Add adversarial document-content tests and RAG prompt-injection handling guidance.
76
+
77
+ ### Security and release readiness
78
+ - Switch the Unstructured integration extra to its API-only client path, avoiding the vulnerable legacy local parser dependency chain.
79
+ - Refresh pinned development and optional-backend dependencies to current compatible releases.
80
+ - Add a scheduled all-extras dependency audit and a release checklist.
81
+ - Switch the PyPI publishing workflow to OIDC trusted publishing and require a reviewed, dated changelog entry on a master-reachable version tag.
82
+
83
+ ### Fixed
84
+ - Constrain the development coverage dependency to versions with published wheels for the supported CI platforms.
85
+ - Apply Ruff's Markdown formatting to the hybrid retrieval README example so the repository-wide format check passes.
86
+
87
+ ### Retrieval and provider additions
88
+ - Token-budget chunking through an injectable tokenizer interface.
89
+ - Provider-neutral embedding, vector-store, and reranker protocols with a dependency-free in-memory vector store.
90
+ - BM25 lexical search and hybrid reciprocal-rank fusion retrieval.
91
+ - Retrieval evaluation metrics: Precision@K, Recall@K, MRR, and nDCG@K.
92
+ - Retrieval results retain chunk source, page, element, and character-offset provenance.