Skip to content

Commit c9a2814

Browse files
authored
Merge pull request #605 from mys721tx/doc
feat(docs): add json for docling
2 parents 3f9e55d + c5b03fd commit c9a2814

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

docs/features/document-extraction/docling.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,33 @@ docker run --gpus all -p 5001:5001 -e DOCLING_SERVE_ENABLE_UI=true quay.io/docli
5353
* Save the changes.
5454

5555
#### Make sure the object value is a valid JSON! Working examples below:
56-
56+
5757
![image](https://github.com/user-attachments/assets/f6524949-fb47-4686-9c81-6ab8fdda6db1)
58+
59+
```json
60+
{
61+
"repo_id": "HuggingFaceTB/SmolVLM-256M-Instruct",
62+
"generation_config": {
63+
"max_new_tokens": 200,
64+
"do_sample": false
65+
},
66+
"prompt": "Describe this image in a few sentences."
67+
}
68+
```
69+
5870
![image](https://github.com/user-attachments/assets/982e0081-8c11-457c-b886-af91569e7fef)
5971

72+
```json
73+
{
74+
"url": "http://localhost:11434/v1/chat/completions",
75+
"params": {
76+
"model": "qwen2.5vl:7b-q4_K_M"
77+
},
78+
"timeout": 60,
79+
"prompt": "Describe this image in great details. "
80+
}
81+
```
82+
6083
Verifying Docling in Docker
6184
=====================================
6285

@@ -74,10 +97,10 @@ This command starts the Docling container and maps port 5001 from the container
7497

7598
### 2. Verify the Server is Running
7699

77-
* Go to `http://127.0.0.1:5001/ui/`
100+
* Go to `http://127.0.0.1:5001/ui/`
78101
* The URL should lead to a UI to use Docling
79102

80-
### 3. Verify the Integration
103+
### 3. Verify the Integration
81104

82105
* You can try uploading some files via the UI and it should return output in MD format or your desired format
83106

0 commit comments

Comments
 (0)