wrk submits text, image, or embedding jobs to a workspace for processing by nrvnad.
Usage
Arguments
Directory path for job storage. Must match the workspace used by
nrvnad.Text prompt for inference. Can be multiple words without quotes.
Read prompt from stdin instead of command-line arguments.
Options
Path to image file to attach. Can be specified multiple times for multiple images.
Submit as embedding job instead of text generation. Returns a vector representation.
Display help message.
Display version number.
Environment Variables
Log level: ERROR, WARN, INFO, DEBUG, TRACE (default: WARN for clean output).
Output
On success,wrk outputs only the job ID to stdout:
flw:
Examples
Submit simple text prompt
Submit with quotes
Submit from stdin
Submit with image
Submit multiple images
Submit embedding request
Pipe to result retrieval
Behavior
Prompt Handling
- All non-option arguments after workspace are joined with spaces
- Stdin input strips only trailing newline for single-line prompts
- Empty prompts are rejected with an error
Workspace Creation
If the workspace directory doesn’t exist,wrk creates it with the required structure.
Job Types
- Text Generation (default): Standard LLM completion
- Vision: Text generation with image context (when
--imageis used) - Embedding: Vector representation (when
--embedis used)
Exit Codes
0- Success, job submitted1- Error occurred