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.4 KB
Raw Blame
description: Automation (lean) job match prompt regression tests

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
      max_tokens: 4096

  # 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
      max_tokens: 4096
      passthrough:
        reasoning_effort: "none"

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

tests:
  - description: Backend resume vs matching backend JD - strong fit, lean output
    vars:
      resumeText: file://./fixtures/backend-resume.txt
      jobDescription: file://./fixtures/backend-job.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:assertAutomationSummaryOnly
      - type: javascript
        value: file://./assertions.ts:assertRecommendationConsistent
      - type: javascript
        value: file://./assertions.ts:assertStrongMatchHigh

  - description: Marketing resume vs backend JD - weak fit, lean output
    vars:
      resumeText: file://./fixtures/marketing-resume.txt
      jobDescription: file://./fixtures/backend-job.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:assertAutomationSummaryOnly
      - type: javascript
        value: file://./assertions.ts:assertRecommendationConsistent
      - type: javascript
        value: file://./assertions.ts:assertWeakMatchLow