Skip to content

Make Document Intelligence formulas opt-in - #1595

Closed
Lovish Arora (lavish0000) wants to merge 1 commit into
microsoft:mainfrom
lavish0000:fix/docintel-formulas-1536
Closed

Lovish Arora (lavish0000) wants to merge 1 commit into
microsoft:mainfrom
lavish0000:fix/docintel-formulas-1536

Conversation

@lavish0000

Copy link
Copy Markdown

Summary

  • make Document Intelligence formula extraction opt-in instead of enabling it for every OCR-capable file
  • thread docintel_enable_formulas through MarkItDown into DocumentIntelligenceConverter
  • add regression coverage for the default behavior and the explicit opt-in path

Testing

  • UV_PROJECT_ENVIRONMENT=.venv_markitdown uv run --project packages/markitdown --with pytest python -m pytest packages/markitdown/tests/test_module_misc.py -k 'docintel_analysis_features or docintel_formula_setting or input_as_strings'
  • UV_PROJECT_ENVIRONMENT=.venv_markitdown uv run --project packages/markitdown --with ruff python -m ruff check README.md packages/markitdown/src/markitdown/_markitdown.py packages/markitdown/src/markitdown/converters/_doc_intel_converter.py packages/markitdown/tests/test_module_misc.py
  • UV_PROJECT_ENVIRONMENT=.venv_markitdown uv run --project packages/markitdown --with ruff python -m ruff format --check packages/markitdown/src/markitdown/_markitdown.py packages/markitdown/src/markitdown/converters/_doc_intel_converter.py packages/markitdown/tests/test_module_misc.py

Fixes #1536

@lavish0000

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@chienyuanchang

Copy link
Copy Markdown
Member

Thanks, Lovish Arora (@lavish0000), for opening this PR and contributing the formula opt-in design, plumbing, documentation, and regression tests. #1913 has now merged and addresses the same issue through the more general docintel_features option: no analysis add-ons are enabled by default, and callers explicitly opt in to the features they need. Your contribution is credited in the merged PR. Closing this PR as superseded by #1913.

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.

FORMULAS feature is unconditionally set in Azure Document Intelligence converter

2 participants