Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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
```