Home Explore Blog CI



ragit

docs/commands/ls-chunks.txt
a2dfdd01aa4dee9abb46febafce92ff499b9f93af27e71640000000300000255
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 }`

Chunks
ffd074bb (1st chunk of `docs/commands/ls-chunks.txt`)
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.