Routing Profiles

PureRouter is a completely independent product from PureCPP. You can use PureRouter without needing PureCPP and vice versa.
PureRouter offers three main routing profiles that allow you to balance cost, quality, and speed according to your specific needs.

Available Profiles

Profile Comparison

FeatureEconomyBalancedQuality
CostLowMediumHigh
QualityBasicGoodExcellent
Supported complexityLowMediumHigh
CreativityLimitedModerateHigh
ReasoningBasicGoodAdvanced
Ideal useSimple tasks, high volumeGeneral useComplex, specialized tasks

Choosing the Right Profile

  1. Evaluate task complexity - Simple tasks can use Economy, while complex tasks need Quality
  2. Consider your budget - If cost is a primary concern, start with Economy and scale as needed
  3. Test different profiles - Compare results to find the best balance for your specific use case
  4. Analyze query volume - For high volume, Economy may be more suitable; for low volume critical queries, Quality may be justified

Practical Examples

Example 1: Customer Service Chatbot

def customer_service_bot(query, importance):
    # Use Economy for simple FAQ questions
    if is_faq(query):
        return client.router.infer(InferRequest(
            prompt=query,
            profile="economy"
        ))
    
    # Use Balanced for most queries
    elif importance == "normal":
        return client.router.infer(InferRequest(
            prompt=query,
            profile="balanced"
        ))
    
    # Use Quality for VIP customers or critical issues
    elif importance == "high":
        return client.router.infer(InferRequest(
            prompt=query,
            profile="quality"
        ))

Example 2: Writing Assistant

def writing_assistant(task_type, content):
    if task_type == "grammar_check":
        # Simple grammar corrections can use Economy
        return client.router.infer(InferRequest(
            prompt=f"Correct the grammatical errors in the following text: {content}",
            profile="economy"
        ))
    
    elif task_type == "rewrite":
        # Text rewrites use Balanced
        return client.router.infer(InferRequest(
            prompt=f"Rewrite the following text to make it clearer and more concise: {content}",
            profile="balanced"
        ))
    
    elif task_type == "creative_content":
        # Creative content uses Quality
        return client.router.infer(InferRequest(
            prompt=f"Create creative and engaging content about: {content}",
            profile="quality"
        ))

Next Steps