aiex-cli 0.0.1-beta.27 → 0.0.1-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,6 +33,8 @@ aiex extract -s invoice -f invoice.pdf # extract data with AI and insert into d
33
33
  - **JSON Schema → SQLite** — Define tables as JSON Schema files, generate Drizzle ORM schema, and migrate to SQLite
34
34
  - **Visual Editor** — Browser-based UI for designing schemas without writing JSON by hand
35
35
  - **AI Extraction** — Extract structured data from text, images, and PDFs using any OpenAI-compatible provider (OpenAI, Anthropic, Ollama, DeepSeek, local models, etc.)
36
+ - **Interactive Mode** — Run `aiex extract` without arguments for a guided extraction workflow
37
+ - **Batch Mode** — `aiex extract -d <dir>` processes entire directories with optional glob filtering
36
38
  - **Built-in Model Registry** — Knows capabilities of 2000+ models (vision, structured output) so you don't have to guess
37
39
 
38
40
  <br>
@@ -68,17 +70,22 @@ Converts your JSON Schema files into a SQLite database with full migration suppo
68
70
  ### 4. Extract Data
69
71
 
70
72
  ```bash
71
- aiex extract -s <schema> -f <file> # from file (txt, pdf, png, jpg, ...)
72
- aiex extract -s <schema> -t <text> # from text
73
- aiex extract -s <schema> -f <file> -m <model> # specify AI model (overrides auto-selection)
73
+ aiex extract # interactive mode (prompts for schema & input)
74
+ aiex extract -s <schema> -f <file> # from file (txt, pdf, png, jpg, ...)
75
+ aiex extract -s <schema> -t <text> # from text
76
+ aiex extract -s <schema> -f <file> -m <model> # specify AI model (overrides auto-selection)
77
+ aiex extract -s <schema> -d <directory> # batch extract all supported files in a directory
78
+ aiex extract -s <schema> -d <dir> -g "*.pdf" # batch with glob filter
74
79
  ```
75
80
 
76
81
  The AI reads your document and outputs structured JSON matching your schema.
77
82
 
78
83
  **Examples:**
79
84
  ```bash
85
+ aiex extract # interactive mode
80
86
  aiex extract -s paper -f research.pdf # save result to .aiex/extracted/ and insert into database
81
87
  aiex extract -s paper -f research.pdf -m gpt-4o # use a specific model
88
+ aiex extract -s paper -d ./papers -g "*.pdf" # batch extract PDFs from a directory
82
89
  ```
83
90
  Saves the extracted result to `.aiex/extracted/<schema-name>-<timestamp>.json` with fields like `title`, `firstAuthor`, `journal`, `year` — exactly as defined in your schema. Data is automatically inserted into the SQLite database.
84
91
 
@@ -94,8 +101,11 @@ By default, aiex automatically selects a model based on your input type (vision-
94
101
  | `aiex schema` | Parse JSON Schema files and migrate to SQLite |
95
102
  | `aiex schema --generate` | Generate Drizzle schema code only (skip migration) |
96
103
  | `aiex web` | Launch visual schema editor in browser |
104
+ | `aiex extract` | Interactive mode — prompts for schema and input source |
97
105
  | `aiex extract -s <name> -f <file>` | Extract structured data from documents and insert into SQLite database |
98
106
  | `aiex extract -s <name> -f <file> -m <model>` | Extract with a specific AI model |
107
+ | `aiex extract -s <name> -d <dir>` | Batch extract all supported files in a directory |
108
+ | `aiex extract -s <name> -d <dir> -g "*.pdf"` | Batch extract with glob filter |
99
109
  | `aiex doctor` | System and configuration diagnostics |
100
110
  | `aiex completion bash\|zsh\|fish` | Generate shell completion scripts |
101
111