Home Explore Blog CI



ragit

1st chunk of `docs/commands/clone.txt`
bceccc852bc295b33d6b0051843c2396359a99bf5d8b5eb00000000100000350
rag-clone(1)
==========

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

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

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.

Title: Rag Clone Command
Summary
The rag-clone command clones a knowledge-base into a new directory, supporting two use cases: cloning a complete knowledge-base for querying and cloning a half-built one for continuation or merger, although the latter is still under development and unstable.