Ironclad / Ironclad/rivet

[Feature]: Load a prompt from an external file and use inputs

Open
#418 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4.7k
Forks
388
PR merge metrics
No merged PRs in 30d

Description

### Feature Request

I'd like to load my prompts from external text files, so they are versioned cleanly.

The `Read File` doesn't solve my problem: The variables can't be linked to inputs in the resulting text node.

Example:

Screenshot 2024-06-12 at 21 17 24
I would like `{{userInstructions}}` and `{{context}}` to be available as variables / inputs.

Is it possible to do this currently in Rivet ?

If not, what workaround do you use to properly version your prompts ?

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.