Mistral prompts
Prompts for Mistral models: concise instructions, multilingual work and function calling.
-
Mistral prompt_cache_key for Server-Side Prefix Caching
When running repeated queries over a shared system prompt and context across Mistral's 256k context window, configure promptcachekey: shared-prefix to reuse Mistral's server-side prompt cache across requests. …
-
Codestral Fill-in-the-Middle (FIM) Prompting
Codestral is fluent in 80+ programming languages and features a dedicated Fill-in-the-Middle (FIM) mechanism. To use FIM effectively, pass the code above the cursor as the prompt (prefix: function definition and docstrin
-
Mistral Prefix Mode: Force the Target Language
Mistral's official cookbook documents Prefix Mode: passing an assistant message with "prefix": True prepends a chosen string directly to the model's completion. When user queries or RAG documents are in English but you r
-
Mistral Prefix Mode Plus Few-Shot for Strict Formats
Combine Mistral's recommendation to include clear input/output examples with Prefix Mode so the completion always adheres to your exact analytical template. …