summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-01-04 18:13:57 +0800
committerGitHub <noreply@github.com>2025-01-04 18:13:57 +0800
commitbb648d68845e0755edb03570237039433a752463 (patch)
treed6797c0b511a2b19f9b37d646c503e2001061264 /src/cli.rs
parent1a07be70b91a06e1e966221816a640e8284fef23 (diff)
downloadaichat-bb648d68845e0755edb03570237039433a752463.tar.gz
feat: add cli option `--rebuild-rag` (#1074)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 2de6113..18bc442 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -30,6 +30,9 @@ pub struct Cli {
/// Start a RAG
#[clap(long)]
pub rag: Option<String>,
+ /// Rebuild the RAG to sync document changes
+ #[clap(long)]
+ pub rebuild_rag: bool,
/// Serve the LLM API and WebAPP
#[clap(long, value_name = "ADDRESS")]
pub serve: Option<Option<String>>,