From 8df960093b6b3eea8dba6f97d4e04c5ce4461746 Mon Sep 17 00:00:00 2001 From: Kenny Zhang Date: Fri, 31 Jan 2025 12:09:14 -0500 Subject: [PATCH] updated docs to include doc intelligence --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 6bc91e6..e8f9246 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ Or use `-o` to specify the output file: markitdown path-to-file.pdf -o document.md ``` +To use Document Intelligence conversion: + +```bash +markitdown path-to-file.pdf -o document.md -d -e "" +``` + You can also pipe content: ```bash @@ -51,6 +57,16 @@ result = md.convert("test.xlsx") print(result.text_content) ``` +Document Intelligence conversion in Python: + +```python +from markitdown import MarkItDown + +md = MarkItDown(docintel_endpoint="") +result = md.convert("test.pdf") +print(result.text_content) +``` + To use Large Language Models for image descriptions, provide `llm_client` and `llm_model`: ```python