Synopsis
sc rag [-hV] [--etl=TARGET] [-o=OUTPUT_FILE] DOCUMENT
Description
Interact with the RAG (Retrieval-Augmented Generation) system.
Process documents and perform ETL operations for enhanced AI responses.
Supports local files and remote HTTPS resources with multiple formats
including PDF
, Markdown
, JSON
, and HTML
documents.
- ETL Operations
-
-
file - Extract, process store documents in a txt file
-
vectorStore - Store document embeddings in a vector database
-
- Examples
-
-
sc rag file:///home/user/document.pdf --output=summary.txt
-
sc rag https://example.com/article.html --etl=vectorStore
-
sc rag file:///docs/manual.md --output=summary.txt --etl=file
-
- Supported Document Types
-
-
PDF files (.pdf)
-
Markdown files (.md, .markdown)
-
HTML web pages (.html, .htm)
-
JSON files (.json)
-
Plain text files (.txt)
-
- Supported Protocols
-
-
file:// Local file system
-
https:// Remote HTTPS resources (secure only)
-
Options
- --etl=TARGET
-
ETL operation target specifying how to process the document.
-
file - Extract content and optionally save to output file
-
vectorStore - Process and store embeddings in a vector database
Default: file
-
- -h, --help
-
Show this help message and exit.
- -o, --output=OUTPUT_FILE
-
Output filename for the RAG response.
Must be used with '--etl=file' operation.
Saves processed content to specified file.
Example: --output=summary.txt
- -V, --version
-
Print version information and exit.
Arguments
- DOCUMENT
-
The document to process using one of the supported protocols:
- Local Files
- Remote Files (HTTPS only)
-
-
https://github.com/user/repo/raw/main/README.md
Note: Only HTTPS URLs are supported for security reasons.