Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
When to prompt, use RAG, or fine-tune
Run
def pick_strategy(facts_change_daily: bool, monthly_calls: int, strict_local_privacy: bool) -> str: if facts_change_daily: return 'RAG (Knowledge) — keep facts outside model weights' if strict_local_privacy or monthly_calls >= 500_000: return 'Fine-tune small open model (praisonai-train) + serve via Ollama' return 'Start with prompting + output_pydantic + Judge eval' print('Policy Q&A:', pick_strategy(True, 100_000, False)) print('Ticket router:', pick_strategy(False, 1_000_000, True)) print('Prototype:', pick_strategy(False, 5_000, False))
Press Run. The result appears here.
Esc
Search in
All
Docs
University