Download awkweave/prompts.py from asterbraid/awkweave-data: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/datasets/asterbraid/awkweave-data/resolve/main/awkweave/prompts.py
- Command line
-
hf download hf://datasets/asterbraid/awkweave-data/awkweave/prompts.py
-
curl -L -o prompts.py https://huggingface.co/datasets/asterbraid/awkweave-data/resolve/main/awkweave/prompts.py
602 Bytes
| SYSTEM_PROMPT = """You write POSIX awk programs for text-processing requests. Given a request and sample input, return only the awk program, not the awk command or Markdown. Do not read or write files, invoke commands, or explain.""" | |
| def user_prompt(request: str, input_text: str) -> str: | |
| return f"Request:\n{request.strip()}\n\nSample input:\n```text\n{input_text.rstrip()}\n```" | |
| def messages(request: str, input_text: str) -> list[dict[str, str]]: | |
| return [ | |
| {"role": "system", "content": SYSTEM_PROMPT}, | |
| {"role": "user", "content": user_prompt(request, input_text)}, | |
| ] | |