0.0
The project is in a healthy, maintained state
SmartPrompt provides a flexible DSL for managing prompts, interacting with multiple LLMs, and creating composable task workers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.7.1
~> 1.3.0
~> 7.1.0
~> 1.0.4
~> 0.3.0
 Project Readme

EN | 中文

SmartPrompt

SmartPrompt is a powerful Ruby gem that provides a domain-specific language (DSL), enabling other Ruby programs to conveniently and naturally call upon the capabilities of various large language models (LLMs).

Key Features

  • Flexible task composition: Combine various tasks using specific service providers + specific LLMs + specific prompts
  • Nested subtasks: Support for composing and calling other subtasks in DSL form
  • Performance optimization: Provide performance-optimal or cost-effective solutions while ensuring quality

Installation

To install the gem and add it to your application's Gemfile, execute the following command:

$ bundle add smart_prompt

If you don't use a bundler to manage dependencies, you can install the gem by executing the following command:

$ gem install smart_prompt

Usage

See project SmartPromptDemo for more examples.