Show HN: ActionPrompt – A Rails Plugin for Managing Your LLM Prompts

https://github.com/evdevdev/action_prompt
by evtothedev • 2 years ago
2 1 2 years ago

Hi Everyone! I've just extracted this from our code base.

As LLMs have become ubiquitous in web applications, I've noticed that prompts intended for Claude or GPT have become scattered throughout our codebase or buried within objects. Often, these prompts were built inline through string manipulation. My thinking was two-fold, 1) Let's come up with a simple pattern for organizing and rendering these prompts, and 2) Let's make them easy to review.

This draws heavy inspiration from ActionMailer::Preview.

Related Stories

Loading related stories...

Source preview

github.com