A Prompt in R2R represents a templated instruction or query pattern that can be reused across the system. Prompts are managed by superusers and provide a consistent way to structure interactions with language models and other AI components.

Prompts in R2R provide:

  • Templated instruction management
  • Type-safe input handling
  • Centralized prompt governance
  • Dynamic prompt generation
  • Version control for prompts

Available Endpoints

MethodEndpointDescription
POST/promptsCreate a new prompt template
GET/promptsList all available prompts
GET/prompts/{name}Get a specific prompt with optional inputs
PUT/prompts/{name}Update an existing prompt
DELETE/prompts/{name}Delete a prompt template