Home Explore Blog CI



ragit

1st chunk of `docs/commands/build.txt`
d9ce4fd3c5e0b0c9888aa33e908dd752263d832a089046a9000000010000024c
rag-build(1)
==========

NAME
----
rag-build - Build knowledge-base from staged files

SYNOPSIS
--------
[verse]
'rag build' [--jobs <n=8>] [--quiet | -q]

DESCRIPTION
-----------
Run `rag help chunks` to read documents on chunks and files.

This command reads files in the staging area and process them. Once it's
processed, you can ask queries on them.

It might take long time to build because LLMs have to read each file and create
index. This command regularly flushes the result (you can see that in the
dashboard), and when you terminate the process, the flushed results are safe.

Title: rag-build Command
Summary
The rag-build command builds a knowledge-base from staged files, processing them to enable querying, and regularly flushes results to ensure data safety. It may take a long time to complete due to the need for Large Language Models (LLMs) to read and index each file, but the command provides regular progress updates and preserves flushed results in case of termination.