Skip to content

Command line ​

Installing ragX adds the ragx command.

ragx ask ​

Answer a question over a corpus, with a live trace of the agent:

bash
ragx ask "Who founded Ashford University?" --corpus ./docs
OptionDefaultMeaning
-c, --corpus.file or folder to search
-m, --modelfrom the environmentprovider:model
-v, --variantragx-lexicalany variant
--steps10forager turns
--think / --no-thinkthe variant'sthinking mode
--live / --no-live--liveshow the live trace
--jsonoffprint the answer as JSON (implies --no-live)

--json prints the text, citations, grounded, confidence and usage, which is convenient for scripts:

bash
ragx ask "Who founded Ashford University?" -c ./docs --json | jq .text

Retrieval only, with no LLM call: the top passages for a query.

bash
ragx search "Ashford University founder" -c ./docs -v ragx-fused -k 5

ragx ingest ​

Build the text mirror and, for dense variants, the embeddings ahead of time:

bash
ragx ingest ./docs --variant ragx

ragx serve ​

Start an OpenAI-compatible server:

bash
ragx serve ./docs --variant ragx-lexical --port 8000

ragx variants ​

List every variant with its ranker, stages and backfill.

ragx version ​

Print the installed version (also ragx --version).

Released under the Apache 2.0 License.