Skip to content

Add hybrid AI-assisted model recommendations - #14

Merged
codoom1 merged 1 commit into
mainfrom
agent/add-ai-assisted-recommendations
Jul 25, 2026
Merged

Add hybrid AI-assisted model recommendations#14
codoom1 merged 1 commit into
mainfrom
agent/add-ai-assisted-recommendations

Conversation

@codoom1

@codoom1 codoom1 commented Jul 25, 2026

Copy link
Copy Markdown
Owner

What changed

  • keeps the deterministic statistical scoring engine as the first-stage shortlist generator
  • adds an optional, checked-by-default AI review for authenticated users
  • lets OpenAI choose only among verified shortlisted models and explain fit, assumptions, and alternative tradeoffs
  • uses strict Responses API structured output plus server-side allowlist validation
  • consumes one durable per-user AI quota unit per review
  • falls back to the complete rules-based recommendation when AI, quota storage, or provider access is unavailable
  • adds clear AI-assisted and fallback states to the results page

Why

The application previously used OpenAI for the chatbot and questionnaire tools, but not for the recommendation itself. This adds a bounded hybrid layer without allowing AI to invent models or making core recommendations dependent on the provider.

User impact

Signed-in users can request a richer AI review directly from the model-selection form. Guests and users who disable the option continue to receive the deterministic recommendation. A failed AI request never blocks the result page.

Validation

  • python -m pytest -q tests/ — 128 passed
  • focused flake8 fatal-error checks — passed
  • git diff --check — passed
  • Chrome mobile emulation at 390px — no horizontal overflow (scrollWidth == innerWidth == 390)

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
statistical-model-suggester Ready Ready Preview, Comment Jul 25, 2026 12:00am

@codoom1
codoom1 marked this pull request as ready for review July 25, 2026 00:03
Copilot AI review requested due to automatic review settings July 25, 2026 00:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codoom1
codoom1 merged commit e8dc6b5 into main Jul 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants