Repository navigation
Replies: 2 comments
|
I would use a small python program to use the above file as a Jinja2 template and populate the content entries from the program. Then use the output file as the prompt to pass to |
0 replies
|
LLM has built-in template parameters. Put your XML inside a YAML prompt: |
<purpose>
Clean company names. Return only a JSON list of objects with
"original" and "cleaned" keys, without Markdown fences.
</purpose>
<content>
$entries
</content>Then pass the value with llm -t cleanup.yaml -p entries 'PERSONAL FINANCIAL CONSULTANTS INC /ADV'You can keep all your original XML instructions and examples; indent them under For a file of entries, replace llm -t cleanup.yaml < entries.txt |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
let's say I got a .txt file that contains my prompt below and I want to use llm to pass this file as prompt but it contains a dynamic variable
entries. Is it possible to pass it too? TanksPROMPT
All reactions