Using Prompt Slugs with Python SDK
Use prompt slugs in the Python SDK to run tests programmatically. Streamline AI evaluations at scale.
1. Prerequisites
pip install ragaai-catalyst
2. Initialise RagaAICatalyst and PromptManager
from ragaai_catalyst import RagaAICatalyst
from ragaai_catalyst.prompt_manager import PromptManager
# Initialize RagaAICatalyst instance
catalyst = RagaAICatalyst(
access_key="your_access_key",
secret_key="your_secret_key",
base_url="https://your-api-base-url.com/api"
)
# Create a PromptManager for your project
project_name = "your-project-name"
prompt_manager = PromptManager(project_name)3. List Available Prompts
4. List Prompt Versions
5. Get a Prompt Object
6. Get Prompt Variables
7. Compile Prompt
8. Get Prompt Parameters
Last updated
Was this helpful?

