Communicating better for a Super Intelligent World

c/MarketingCopy · Mistral · u/prompts360 Expert · 6d ago · edited

Mistral Persona Prefix: 3 Words, Fewer Tokens

Detailed system prompts explaining persona, tone, and language consume significant prompt tokens. Mistral's prefix cookbook shows that a concise 3-word prefix such as prefix = "Assistant Pirate Français : " implicitly conveys the persona, language, and dialogue task; pair it with a concise system prompt to prevent noisy completions.

messages = [ {"role": "system", "content": "Answer accurately in the specified persona."}, {"role": "user", "content": "Explain cloud object storage."}, {"role": "assistant", "content": "Architecte Cloud Français : ", "prefix": True} ]

Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.

Log in to say it worked for you.

0 comments save
embed

Log in or sign up to comment.

No comments yet.