Home Explore Blog CI



ragit

docs/commands/archive-create.txt
70ddbfad2afa4a84784ad7aade0fd2f2f75d973ef2892ba40000000300000537
rag-archive(1)
==========

NAME
----
rag-archive-create - Create an archive of a knowledge-base
rag-create-archive - Alias
rag-archive - Alias

SYNOPSIS
--------
[verse]
'rag archive-create' [--jobs <n=4>] [--size-limit <n=0>] [--[no-]configs]
            [--[no-]prompts] [--force | -f] [--quiet | -q]
            --output | -o <file>

DESCRIPTION
-----------
You can create an archive of a knowledge-base. You can easily store and share
your knowledge-base. `rag pull` and `rag clone` also send and receive archive
files.

If `--size-limit` is 0 or not set, it creates a single file. If the limit is
set, it tries its best to keep each file smaller than `n` bytes. It behaves
oddly if the size limit is too small. Please keep size limit greater than 4 KiB.

By default, the archives do not include configs and prompts. If you extract
such archives, the knowledge-bases will have default configs and default
prompts. You can override this behavior with `--configs` and `--prompts` option.

By default, it raises an error if the output file already exists. You can
forcefully write to the file with `--force` option. If something goes wrong
while forcefully writing to a file, you might lose the original data. Be careful.

The created archive does not include inverted index. You have to run `ii-build`
after you extract the archive.

Chunks
a5941dfc (1st chunk of `docs/commands/archive-create.txt`)
Title: rag-archive-create Command
Summary
The rag-archive-create command is used to create an archive of a knowledge-base, allowing for easy storage and sharing, with options to customize the archive's size, contents, and output file, including settings for jobs, size limits, and inclusion of configurations and prompts.