Home Explore Blog CI



ragit

docs/commands/check.txt
820d86d259188b3040bcda8f13b848efc52e29d0c23d3eb60000000300000328
rag-check(1)
==========

NAME
----
rag-check - Check whether there's a corruption in a knowledge-base

SYNOPSIS
--------
[verse]
'rag check' [--recover]

DESCRIPTION
-----------
This command checks whether a knowledge-base is corrupted or not. It's a quite
expensive command to run. In most cases, what you want to run is `rag status`,
not `rag check`.

There are 2 use cases for this command.

1. When you have downloaded a knowledge-base and wanna know whether the
   knowledge-base is corrupted or not, run this command.
2. If you have implemented a new feature, you have to write a test. Use this
   command in the test to make sure that your new feature does not mess up
   the knowledge-base.

`--recover` tries to recover from a corrupted knowledge-base, without any loss
of information. It may fail.

Chunks
83c8c0b1 (1st chunk of `docs/commands/check.txt`)
Title: rag-check Command
Summary
The rag-check command checks for corruption in a knowledge-base and can optionally attempt to recover from corruption with the --recover option, useful in scenarios such as verifying the integrity of a downloaded knowledge-base or testing the impact of new features on the knowledge-base.