Home Explore Blog Models CI



ragit

docs/commands/clone.txt
e6df8e89ccd0b348c6bc7a4128459e668f15ca041b49bc0900000003000003e4
rag-clone(1)
==========

NAME
----
rag-clone - Clone a knowledge-base into a new directory

SYNOPSIS
--------
[verse]
'rag clone' <remote url> [<directory>] [--quiet | -q] [--[no-]ii]

DESCRIPTION
-----------
Like `git clone`, it clones a knowledge-base and copies it to a newly created
directory.

You can think of 2 use cases of `rag clone`

1. Clone a complete knowledge-base and query it.
2. Clone a half-built knowledge-base and continue building it. Or, you can
   clone multiple half-built ones and merge them.

Ragit will support both use cases, but the second one is not stable yet.
Cloning a half-built base is not tested yet, and `rag merge` is still heavily
under construction.

If you're cloning a private knowledge-base, you need an api key. Ragit looks
for api key in environment variables. You have to set `RAGIT_API_KEY`
environment variable.

By default, it creates an inverted index after cloning the knowledge-base. If
you want to disable that, you can give `--no-ii` option.

Chunks
2c589c11 (1st chunk of `docs/commands/clone.txt`)
Title: Rag-Clone Command
Summary
The rag-clone command clones a knowledge-base into a new directory, with options for quiet mode, inverted indexing, and support for private knowledge-bases using an API key, allowing users to clone complete or half-built knowledge-bases for querying or further development.