Skip to content

Commit 93b0214

Browse files
monikakusterivicac
authored andcommitted
1018 - generated
1 parent e6cb1c1 commit 93b0214

File tree

2 files changed

+1046
-78
lines changed
  • docs/src/content/docs/reference/components
  • server/libs/modules/components/ai/llm/mistral/src/test/resources/definition

2 files changed

+1046
-78
lines changed

docs/src/content/docs/reference/components/mistral.md

+74
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,79 @@ The output for this action is dynamic and may vary depending on the input parame
9797

9898

9999

100+
### Document OCR
101+
Name: ocr
102+
103+
Extracts text and structured content from documents.
104+
105+
#### Properties
106+
107+
| Name | Label | Type | Description | Required |
108+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
109+
| model | Model | STRING | Model to use. | true |
110+
| type | Type | STRING <details> <summary> Options </summary> image_url, document_url </details> | Type of the document to run OCR on. | true |
111+
| url | Image URL | STRING | Url of the image to run OCR on. | true |
112+
| url | Document URL | STRING | Url of the document to run OCR on. | true |
113+
114+
#### Example JSON Structure
115+
```json
116+
{
117+
"label" : "Document OCR",
118+
"name" : "ocr",
119+
"parameters" : {
120+
"model" : "",
121+
"type" : "",
122+
"url" : ""
123+
},
124+
"type" : "mistral/v1/ocr"
125+
}
126+
```
127+
128+
#### Output
129+
130+
131+
132+
Type: OBJECT
133+
134+
135+
#### Properties
136+
137+
| Name | Type | Description |
138+
|:------------:|:------------:|:-------------------:|
139+
| pages | ARRAY <details> <summary> Items </summary> [{INTEGER\(index), STRING\(markdown), [{STRING\(id), INTEGER\(top_left_x), INTEGER\(top_left_y), INTEGER\(bottom_right_x), INTEGER\(bottom_right_y)}]\(images), {INTEGER\(dpi), INTEGER\(height), INTEGER\(width)}\(dimensions)}] </details> | |
140+
| model | STRING | |
141+
| usage_info | OBJECT <details> <summary> Properties </summary> {INTEGER\(pages_processed), INTEGER\(doc_size_bytes)} </details> | |
142+
143+
144+
145+
146+
#### Output Example
147+
```json
148+
{
149+
"pages" : [ {
150+
"index" : 1,
151+
"markdown" : "",
152+
"images" : [ {
153+
"id" : "",
154+
"top_left_x" : 1,
155+
"top_left_y" : 1,
156+
"bottom_right_x" : 1,
157+
"bottom_right_y" : 1
158+
} ],
159+
"dimensions" : {
160+
"dpi" : 1,
161+
"height" : 1,
162+
"width" : 1
163+
}
164+
} ],
165+
"model" : "",
166+
"usage_info" : {
167+
"pages_processed" : 1,
168+
"doc_size_bytes" : 1
169+
}
170+
}
171+
```
172+
173+
100174

101175

0 commit comments

Comments
 (0)