Skip to content

feat: Support for URL convert#4

Open
jiaweing wants to merge 1 commit intodrmingler:mainfrom
jiaweing:main
Open

feat: Support for URL convert#4
jiaweing wants to merge 1 commit intodrmingler:mainfrom
jiaweing:main

Conversation

@jiaweing
Copy link

Added support for converting URLs natively supported by Docling
https://ds4sd.github.io/docling/examples/minimal

source = "https://arxiv.org/pdf/2408.09869"  # document per local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown())
# output: ## Docling Technical Report [...]"

Request:

curl --request POST \
  --url http://localhost:8080/documents/convert \
  --header 'Content-Type: multipart/form-data' \
  --header 'accept: application/json' \
  --form extract_tables_as_images=true \
  --form image_resolution_scale=4 \
  --form url=https://jiaweing.com

Either document or url param needs to be populated.

image

@archasek
Copy link

archasek commented Feb 6, 2025

@jiaweing can you merge please?

1 similar comment
@haoruilee
Copy link

@jiaweing can you merge please?

@archasek
Copy link

@jiaweing https://github.com/docling-project/docling-serve :-)

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.

4 participants