Home Explore Blog Models CI



ragit

docs/commands/ls-queries.txt
451f2848e01b821f928e13d50dd97909d44e09d4fd61dc180000000300000450
rag-ls-queries(1)
==========

NAME
----
rag-ls-queries - List query histories

SYNOPSIS
--------
[verse]
'rag ls-queries' [--stat-only | --uid-only | --content-only] [--json | -j]
            [--abbrev <n=9>] [<uid>..]

DESCRIPTION
-----------
Run `rag help uid-query` to read how uid-query works. If the uid is not of
a query history, it dies.

If you want to see a specific query history, run
`rag ls-queries --content-only <query_uid>`.

You can also continue a conversation with `rag query --continue <query_uid>`
command.

Instead of showing the full 64-byte uid, it shows the first `n` bytes of uid,
where `n` is set by `--abbrev` option. Unlike git, it doesn't use any
heuristics to guarantee that the abbreviated uid is unique.

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

- no flags: `[query: object]`
- `--uid-only`: `[uid: string]`
- `--stat-only`: `{ "queries": integer }`
- `--content-only`: `[[{ "role": "user" | "assistant", "content": string }]]`
  - It's an array of arraies because there are multiple query histories and
    a query history has multiple turns.

Chunks
8a5070c9 (1st chunk of `docs/commands/ls-queries.txt`)
Title: Rag Ls-Queries Command
Summary
The rag-ls-queries command lists query histories, allowing users to view specific query histories, continue conversations, and customize output formats, including JSON, with various options to filter and abbreviate the results.