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

api v1alpha1 #17

Merged
merged 25 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
528ca3a
api v1alpha1
guimou Dec 10, 2024
1f17348
use actual types in request models and refactor
dolfim-ibm Jan 24, 2025
32f358a
make gradio optional and update README
dolfim-ibm Jan 24, 2025
04e2457
Run workflow jobs sequentially to avoid disk space outage (#19)
vishnoianil Jan 22, 2025
930d3fd
Add github job to build image (and not publish) on PR creation (#20)
vishnoianil Jan 23, 2025
c3836ed
add start_server script for local dev
dolfim-ibm Jan 27, 2025
fda5862
fix 3.12-only syntax
dolfim-ibm Jan 27, 2025
26c6ac4
fix more py3.10-11 compatibility
dolfim-ibm Jan 27, 2025
5bedade
rework output format and background tasks
dolfim-ibm Jan 27, 2025
26765ac
speficy return schemas for openapi
dolfim-ibm Jan 27, 2025
6a5aa98
add processing time and update REDAME
dolfim-ibm Jan 27, 2025
407d827
lint markdown
dolfim-ibm Jan 27, 2025
8a09a10
add MD033 to config
dolfim-ibm Jan 27, 2025
13e281e
Merge remote-tracking branch 'origin/main' into api-upgrade
dolfim-ibm Jan 28, 2025
bae6b71
use port 5000
dolfim-ibm Jan 28, 2025
de49a13
use port 5001 as default
dolfim-ibm Jan 28, 2025
1bcfe7f
update deps
dolfim-ibm Jan 28, 2025
2758bf6
refactor input request
dolfim-ibm Jan 28, 2025
ca47ef8
return docling document
dolfim-ibm Jan 28, 2025
c567a82
update new payload in README
dolfim-ibm Jan 28, 2025
95f448d
add base64 example
dolfim-ibm Jan 28, 2025
c7f2601
wrap example in <details>
dolfim-ibm Jan 28, 2025
76d08a9
rename /url in /source
dolfim-ibm Feb 2, 2025
daf959e
Merge remote-tracking branch 'origin/main' into api-upgrade
dolfim-ibm Feb 2, 2025
574d190
move main execution to __main__
dolfim-ibm Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Ignore Python cache files
__pycache__/
**/__pycache__/
*.pyc
*.pyo
*.pyd

# Ignore virtual environments
env/
venv/

# Ignore development artifacts
*.log
*.db
*.sqlite3

# Ignore configuration and sensitive files
**/.env
*.env
*.ini
*.cfg

# Ignore IDE and editor settings
.vscode/
.idea/
*.swp
*.swo

# Ignore Git files
.git/
.gitignore

# Ignore Docker files themselves (optional if not needed in the image)
.dockerignore
Dockerfile*

# Ignore build artifacts (if applicable)
build/
dist/
*.egg-info
2 changes: 2 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ config:
line-length: false
no-emphasis-as-header: false
first-line-heading: false
MD033:
allowed_elements: ["details", "summary"]
globs:
- "**/*.md"
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ repos:
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: poetry run autoflake docling_serve tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: system
Expand Down
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ COPY --chown=1001:0 --chmod=664 ./docling_serve ./docling_serve

EXPOSE 5001

CMD ["uvicorn", "--port", "5001", "--host", "0.0.0.0", "docling_serve.app:app"]
CMD ["python", "-m", "docling_serve"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ md-lint-file:
$(CMD_PREFIX) touch .markdown-lint

.PHONY: docling-serve-cpu-image
docling-serve-cpu-image: Containerfile ## Build docling-serve "cpu only" continaer image
docling-serve-cpu-image: Containerfile ## Build docling-serve "cpu only" container image
$(ECHO_PREFIX) printf " %-12s Containerfile\n" "[docling-serve CPU ONLY]"
$(CMD_PREFIX) docker build --build-arg CPU_ONLY=true -f Containerfile --platform linux/amd64 -t ghcr.io/ds4sd/docling-serve-cpu:$(TAG) .
$(CMD_PREFIX) docker tag ghcr.io/ds4sd/docling-serve-cpu:$(TAG) ghcr.io/ds4sd/docling-serve-cpu:main
$(CMD_PREFIX) docker tag ghcr.io/ds4sd/docling-serve-cpu:$(TAG) quay.io/ds4sd/docling-serve-cpu:main

.PHONY: docling-serve-gpu-image
docling-serve-gpu-image: Containerfile ## Build docling-serve continaer image with GPU support
docling-serve-gpu-image: Containerfile ## Build docling-serve container image with GPU support
$(ECHO_PREFIX) printf " %-12s Containerfile\n" "[docling-serve with GPU]"
$(CMD_PREFIX) docker build --build-arg CPU_ONLY=false -f Containerfile --platform linux/amd64 -t ghcr.io/ds4sd/docling-serve:$(TAG) .
$(CMD_PREFIX) docker tag ghcr.io/ds4sd/docling-serve:$(TAG) ghcr.io/ds4sd/docling-serve:main
Expand Down
Loading