Home Explore Blog CI



ragit

1st chunk of `docs/commands/ls-chunks.txt`
ffd074bb35eb2caa5525538f2d718a5b0115bc3420e663ed0000000100000255
rag-ls-chunks(1)
==========

NAME
----
rag-ls-chunks - Show information about chunks

SYNOPSIS
--------
[verse]
'rag ls-chunks' [--uid-only | --stat-only] [--json | -j] [<uid>..]

DESCRIPTION
-----------
Run `rag help uid-query` to read how uid-query works. If the uid is of a chunk,
if shows the information about the chunk. If it's a file, it shows the
information about the chunks of the file. If it's an image, it dies.

If `--json` is set, it dumps a valid json to stdout. Its schema is,

- no flags: `[chunk: object]`
- `--uid-only`: `[uid: string]`
- `--stat-only`: `{ "chunks": integer }`

Title: rag-ls-chunks Command
Summary
The rag-ls-chunks command displays information about chunks, including options for customizing output format and content, such as showing only UIDs or statistics in JSON format. It accepts various parameters, such as a UID query, and provides detailed information about the chunk or file associated with the provided UID. The command also supports outputting data in JSON format, allowing for easier parsing and integration with other tools and scripts.