mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 00:23:36 +00:00
4dd517c96aef8e94276069bed98430aa30b6446b
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
Docling Serve
Running Docling as an API service.
Note
This is an unstable draft implementation which will quickly evolve.
Development
Install the dependencies
# Install dependencies
poetry install
# Run the server
poetry run uvicorn docling_serve.app:app --reload
Example payload (http source):
curl -X 'POST' \
'http://127.0.0.1:8000/convert' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"http_source": {
"url": "https://arxiv.org/pdf/2206.01062"
}
}'
Languages
Python
93.2%
Makefile
5.1%
Dockerfile
1.7%