Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

2.8 KB
Raw Blame
description: Resume review prompt regression tests

# temperature 0.3 matches TEMPERATURES.FEEDBACK, which review_resume sends.
providers:
  - id: openai:chat:deepseek-v4-flash
    label: deepseek-v4-flash
    config:
      apiBaseUrl: https://api.deepseek.com
      apiKeyEnvar: DEEPSEEK_API_KEY
      showThinking: false
      temperature: 0.3
      max_tokens: 8192

  # Local Ollama via its OpenAI-compatible endpoint. reasoning_effort goes in
  # passthrough to clear promptfoo's reasoning-model name check; disabling
  # thinking matches the app, where ollama-ai-provider-v2 sets think:false.
  - id: openai:chat:qwen3.5:9b
    label: ollama-qwen3.5-9b
    config:
      apiBaseUrl: http://localhost:11434/v1
      apiKey: ollama
      temperature: 0.3
      max_tokens: 8192
      passthrough:
        reasoning_effort: "none"

prompts:
  - file://./prompt.ts

tests:
  - description: Strong senior engineer resume - structural + score validation
    vars:
      resumeText: file://./fixtures/strong-senior.txt
    assert:
      - type: javascript
        value: file://./assertions.ts:assertNotJson
      - type: javascript
        value: file://./assertions.ts:assertScoresLine
      - type: javascript
        value: file://./assertions.ts:assertScoresFirstLine
      - type: javascript
        value: file://./assertions.ts:assertMarkdownBodyNonEmpty
      - type: javascript
        value: file://./assertions.ts:assertRequiredSections
      - type: javascript
        value: file://./assertions.ts:assertStrongScoresHigh

  - description: Weak/sparse resume - structural + score + content validation
    vars:
      resumeText: file://./fixtures/weak-sparse.txt
    assert:
      - type: javascript
        value: file://./assertions.ts:assertNotJson
      - type: javascript
        value: file://./assertions.ts:assertScoresLine
      - type: javascript
        value: file://./assertions.ts:assertScoresFirstLine
      - type: javascript
        value: file://./assertions.ts:assertMarkdownBodyNonEmpty
      - type: javascript
        value: file://./assertions.ts:assertRequiredSections
      - type: javascript
        value: file://./assertions.ts:assertWeakScoresLow
      # Review must reference the fixture's weak phrasing, not paraphrase it away.
      - type: icontains-any
        value:
          - "Responsible for"
          - "Helped with"

  - description: Recent dates resume - past dates must not be called future (issue #123)
    vars:
      resumeText: file://./fixtures/recent-dates.ts
    assert:
      - type: javascript
        value: file://./assertions.ts:assertNotJson
      - type: javascript
        value: file://./assertions.ts:assertScoresLine
      - type: javascript
        value: file://./assertions.ts:assertRequiredSections
      - type: javascript
        value: file://./assertions.ts:assertNoFutureDateClaim