Skip to content

Commit dfd62bd

Browse files
docs(boxsdkgen): Update AI extract structured description with OCR support info (box/box-openapi#564) (#1198)
1 parent a150112 commit dfd62bd

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "522a2bf", "specHash": "8b51a89", "version": "4.0.0" }
1+
{ "engineHash": "2ac72c4", "specHash": "e7ce024", "version": "4.0.0" }

box_sdk_gen/managers/ai.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,16 +431,16 @@ def create_ai_extract_structured(
431431
"""
432432
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
433433
434-
For this request, you either need a metadata template or a list of fields you want to extract.
434+
To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
435435
436436
437-
Input is **either** a metadata template or a list of fields to ensure the structure.
437+
or use the [metadata template API](g://metadata/templates/create).
438438
439439
440-
To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
440+
This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
441441
442442
443-
or use the [metadata template API](g://metadata/templates/create). This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
443+
For information about supported file formats and languages, see the [Extract metadata from file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide.
444444
445445
:param items: The items to be processed by the LLM. Currently you can use files only.
446446
:type items: List[AiItemBase]

docs/box_sdk_gen/ai.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ A response including the answer from the LLM.
151151
## Extract metadata (structured)
152152

153153
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
154-
For this request, you either need a metadata template or a list of fields you want to extract.
155-
Input is **either** a metadata template or a list of fields to ensure the structure.
156-
To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
157-
or use the [metadata template API](g://metadata/templates/create). This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
154+
155+
To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
156+
or use the [metadata template API](g://metadata/templates/create).
157+
158+
This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
159+
160+
For information about supported file formats and languages, see the [Extract metadata from file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide.
158161

159162
This operation is performed by calling function `create_ai_extract_structured`.
160163

0 commit comments

Comments
 (0)