jqweave-0.5b / OLLAMA.md
asterbraid's picture
Jqweave 0.5B: offline natural-language-to-jq with execution-verified data and GGUF
b9aac7e verified
|
Raw History Blame Contribute Delete
781 Bytes

Run Jqweave with Ollama

The included Modelfile selects the Q4_K_M build, applies the required system prompt, limits the context to 4,096 tokens, and uses deterministic generation.

ollama create jqweave-0.5b -f Modelfile

Generate a command with a request and representative JSON input:

ollama run jqweave-0.5b $'Request:\nExtract the value of the name field.\n\nSample input:\n```json\n{"name":"delta","score":90}\n```'

Expected output:

jq '.name'

Review generated commands before execution. To run that example with jq itself:

printf '%s' '{"name":"delta","score":90}' | jq '.name'

Expected result:

"delta"

For a local HTTP API, use llama-server with jqweave-0.5b.Q4_K_M.gguf or the larger Q8_0 build.