@larkup/cli 0.2.31 → 0.3.0
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 +11 -1
- package/dist/{dist-es-LRDDK5LI.js → dist-es-3QFDPX44.js} +139 -139
- package/dist/{dist-es-LWW2DNRF.js → dist-es-LH5Y4P7D.js} +3 -3
- package/dist/index.js +225 -23
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -12,11 +12,20 @@ npm install -g @larkup/cli
|
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
larkup init product-docs
|
|
15
|
+
larkup ai-model --embedding openai/text-embedding-3-small --api-key "$OPENAI_API_KEY"
|
|
15
16
|
larkup index ./knowledge
|
|
16
17
|
larkup dev
|
|
17
18
|
```
|
|
18
19
|
|
|
19
|
-
`index` accepts individual files or folders, including text, source code, CSV, JSON, PDF, and Word documents. It streams loading and indexing progress.
|
|
20
|
+
`index` accepts individual files or folders, including text, source code, CSV, JSON, PDF, and Word documents. It streams loading and indexing progress, and writes the same Project state shown in the Web UI.
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
larkup index ./folder --pdf
|
|
24
|
+
larkup index ./folder --media
|
|
25
|
+
larkup index ./folder --video
|
|
26
|
+
larkup index ./folder --extension .json,.pdf
|
|
27
|
+
larkup ai-model list --type embedding
|
|
28
|
+
```
|
|
20
29
|
|
|
21
30
|
Use the dedicated media command for images, audio, and video:
|
|
22
31
|
|
|
@@ -28,6 +37,7 @@ larkup media ./demo.mp4
|
|
|
28
37
|
## Commands
|
|
29
38
|
|
|
30
39
|
- `larkup index [sources...]` loads sources and builds the index.
|
|
40
|
+
- `larkup ai-model [list]` lists or configures embedding, chat, and vision models.
|
|
31
41
|
- `larkup dev [name]` creates a workspace (default: `my-larkup`) and runs its local server.
|
|
32
42
|
- `larkup documents` manages and exports corpus documents.
|
|
33
43
|
- `larkup media [sources...]` processes image, audio, and video files.
|