# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json description: 'Advanced reasoning with Mistral Magistral models' providers: - id: mistral:magistral-medium-latest label: magistral-medium config: temperature: 0.7 top_p: 0.95 max_tokens: 40960 # The `magistral-small-latest` alias now resolves to Mistral Small 4, so use the # canonical id. Small 4 solves these with chain-of-thought when prompted to. - id: mistral:mistral-small-latest label: mistral-small-4 config: temperature: 0.7 top_p: 0.95 max_tokens: 40960 prompts: - 'Think through this problem step by step: {{problem}}' tests: # Reasoning models keep their working in a separate (stripped) thinking chunk and format # final answers with LaTeX, so correctness is graded with a model rubric rather than brittle # substring matching. - vars: problem: 'A farmer has chickens and rabbits in a pen. There are 30 heads and 88 legs total. How many chickens and how many rabbits are there?' assert: - type: llm-rubric value: 'Correctly identifies that there are 16 chickens and 14 rabbits through systematic reasoning' - vars: problem: 'Three friends split a restaurant bill. Alice pays twice as much as Bob, and Charlie pays $15 more than Bob. If the total bill is $105, how much does each person pay?' assert: - type: llm-rubric value: 'Shows the algebraic setup and correctly calculates Bob: $22.50, Alice: $45, Charlie: $37.50' - vars: problem: 'A water tank is being filled by two pipes and drained by one pipe. Pipe A fills at 10 gallons/minute, Pipe B fills at 15 gallons/minute, and the drain empties at 8 gallons/minute. If all pipes operate simultaneously and the tank starts empty, how long will it take to fill a 340-gallon tank?' assert: - type: llm-rubric value: 'Correctly calculates the net fill rate (17 gallons/minute) and determines it takes 20 minutes'