You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@ SPDX-License-Identifier: MIT-0
5
5
6
6
## [Unreleased]
7
7
8
+
### Added
9
+
10
+
-**Discovery accessible from CLI and SDK** — Discovery can now be run programmatically via the IDP SDK (`client.discovery.run()`) and CLI (`idp-cli discover`), enabling users with many document classes to automate schema generation without the Web UI. Supports both modes: without ground truth (exploratory) and with ground truth (optimized). ([#228](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues/228))
11
+
8
12
### Changed
9
13
10
14
-**Sync to BDA no longer auto-activates the config version** — Previously, performing "Sync to BDA" would automatically set the current config version as active. Since each config version now has its own BDA project, auto-activation is unnecessary. Users can manually choose which version to activate via the Versions table. The "Sync to BDA" confirmation modal text has been updated accordingly.
Copy file name to clipboardExpand all lines: docs/idp-cli.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1995,6 +1995,55 @@ This uses the same mechanism as the Web UI configuration management system.
1995
1995
1996
1996
---
1997
1997
1998
+
### `discover`
1999
+
2000
+
Discover document class schemas from sample documents using Amazon Bedrock.
2001
+
2002
+
**Two modes:**
2003
+
-**Stack-connected** (`--stack-name`): Uses stack's discovery config and saves schema to DynamoDB configuration
2004
+
-**Local** (no `--stack-name`): Uses system default Bedrock settings, prints schema to stdout without saving
2005
+
2006
+
**Ground truth matching:** Ground truth files (`-g`) are auto-matched to documents (`-d`) by filename stem. For example, `invoice.pdf` matches `invoice.json`. Unmatched documents run without ground truth.
2007
+
2008
+
**Output behavior:**
2009
+
- Single document: `-o` writes the schema to the specified file
2010
+
- Batch + `-o` is a directory (or has no extension): writes one `{class_name}.json` per schema
2011
+
- Batch + `-o` is a file: writes all schemas as a JSON array
0 commit comments