Home Explore Blog Models CI



ragit

docs/commands/uid.txt
bb01de9438ac5d2f19a2ab8271e0b2af8d7547b4c8bcf46e0000000300000363
rag-uid(1)
==========

NAME
----
rag-uid - Display uid of the knowledge-base.

SYNOPSIS
--------
[verse]
'rag uid' [--abbrev <n=64>]

DESCRIPTION
-----------
A knowledge-base has a uid. It's a unique identifier of the knowledge-base.
When you edit the knowledge-base (e.g. add chunks), the uid will be changed.

The uid only cares about chunks, images and meta. That means changing configs
or prompts will not change the uid. If you want to push a knowledge-base after
changing configs, I recommend you change its meta so that it has different uid.

Unlike git, it takes long time to calculate a uid of a knowledge-base. So it's
calculated lazily. If uid has never been calculated, this command will
calculate and cache the result. Then it'll use the cached data. When you edit
the knowledge-base, the cache will be invalidated and not calculated until you
need uid.

Chunks
f56cf16b (1st chunk of `docs/commands/uid.txt`)
Title: rag-uid Command Reference
Summary
The rag-uid command displays the unique identifier of a knowledge-base, calculated based on chunks, images, and meta, with caching for efficiency, and is only updated when the knowledge-base is modified, excluding changes to configurations or prompts.