Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinlic/tag-prompt
Dynamically build your semantic LLM Prompt template!
https://github.com/vinlic/tag-prompt
Last synced: about 5 hours ago
JSON representation
Dynamically build your semantic LLM Prompt template!
- Host: GitHub
- URL: https://github.com/vinlic/tag-prompt
- Owner: Vinlic
- Created: 2024-11-12T08:06:26.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2024-11-12T09:09:43.000Z (7 days ago)
- Last Synced: 2024-11-12T09:21:05.137Z (7 days ago)
- Language: TypeScript
- Size: 355 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tag Prompt
Dynamically build your semantic LLM Prompt template!
## Installing
```bash
$ npm install tag-prompt
```## QuickStart
![example](https://github.com/Vinlic/tag-prompt/blob/main/doc/example-1.png)
```javascript
import { Template } from "tag-prompt";
const template = Template.parse("{{a + b}}", {
dataset: {
a: 1,
b: 2
}
});
console.log(template.render({
rootName: "user-input",
pretty: true
})); // 3
```