Use the Bosquet CLI for LLM generation
mainThe Bosquet CLI tool (bllm) allows you to run LLM generations using either a raw prompt string or a prompt file containing structured templates (chat, graph, or plain string).
Generation Modes
- Prompt String: Pass a string directly to trigger generation using the default model.
- Prompt File: Use the
-por--prompt-fileflag to provide a file containing the prompt template. If a--data-fileis not provided, the CLI will interactively prompt you for the required data slots.
Common Options
-p,--prompt-file PROMPT-FILE: File containing the prompt template.-d,--data-file DATA-FILE: File containing context data (as a Clojure data structure) for the prompts.--model MODEL: Specify the model name (e.g.,:gpt-4).--max-tokens NUMBER: Maximum tokens to generate (default:300).--temperature TEMP: Generation temperature between0.0and1.0(default:0).-s,--service SERVICE: LLM service provider (e.g.,:openai,:cohere).--proxy: Use a local proxy (localhost:8080) for logging.--proxy-host HOST/--proxy-port PORT: Specify a custom proxy host and port.--keystore-password PSW: Password for the Bosquet keystore (defaults tochangeit).
# Run with a prompt string
bllm "Hello, how are you?"
# Run with a prompt file and data file
bllm --prompt-file my_prompt.clj --data-file my_data.clj
# Run with specific model and temperature
bllm "Summarize this: ..." --model :gpt-4 --temperature 0.7