The RXP module measures whether adversarial documents appear in top-k retrieval results across embedding models. It requires optional dependencies — install with:Documentation Index
Fetch the complete documentation index at: https://docs.q-uestionable.ai/llms.txt
Use this file to discover all available pages before exploring further.
qai rxp list-models
Display registered embedding models.qai rxp list-profiles
Display built-in domain profiles and their query/corpus counts.qai rxp validate
Run retrieval validation — test whether a poisoned document ranks in the top-k results for a set of queries.--profile or --corpus-dir is required.
Options
| Option | Required | Default | Description |
|---|---|---|---|
--profile | No* | — | Domain profile ID (from list-profiles) |
--corpus-dir | No* | — | Path to directory of .txt corpus files |
--poison-file | No | — | Path to poison document. Required if not using a profile with built-in poison docs. |
--model | No | minilm-l6 | Embedding model: registry shortcut, all, or HuggingFace model name |
--top-k | No | 5 | Number of retrieval results per query |
--output | No | — | Write JSON results to file |
--verbose / -v | No | — | Show per-query hit details |
--save | No | — | Persist results to the qai database |
--query | No | — | Custom query (repeatable). Required when using --corpus-dir without a profile. |
--profile or --corpus-dir is required.
Examples
Validate with a built-in profile:Output
Standard output shows per-model results:--verbose, per-query detail is added:
--model all), a comparison table follows: