Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support for URL convert #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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

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.

2 participants