rag-forge add
Add a feature module as editable source code (shadcn/ui model).
Synopsis
rag-forge add <module>Description
add copies a feature module’s source files into your project as fully editable code. This follows the shadcn/ui model: rather than installing a black-box dependency, you own the code from day one and can modify it freely.
add is not for ingesting documents. Use rag-forge index to load documents into the vector store.
The command reads from a module manifest (src/modules/manifest.json) which maps each module name to the list of source files it contributes and any Python dependencies to install. If a destination file already exists it is skipped rather than overwritten, so add is safe to re-run.
After copying files, add prints a pip install command for any required Python packages the module depends on.
Arguments
| Argument | Required | Description |
|---|---|---|
module | Yes | Module to add. One of: guardrails, caching, reranking, enrichment, observability, hybrid-retrieval. |
Options
This command takes no options.
Examples
Add semantic caching
rag-forge add cachingAdd input/output guardrails
rag-forge add guardrailsAdd cross-encoder reranking
rag-forge add rerankingRelated commands
rag-forge init— scaffold the project firstrag-forge index— ingest documents into the vector store