mirror of
https://github.com/lossless-group/perplexed-plugin.git
synced 2026-07-22 06:49:50 +00:00
Previous version returned third-party stock illustrations (wufoo.com, thingsup.io, pixelfreestudio.com) instead of actual screenshots from the entity's site. The "prefer entity domain" instruction in the prompt was suggestion-only; the model picked whatever Perplexity's image search indexed against the topic keywords. Two changes that should compose to fix this: 1. Send `search_domain_filter: [entityDomain]` on the Perplexity request when the active file's frontmatter has a `url` field. This restricts Perplexity's underlying web search to the entity's domain, so the model can only see and reference on-site pages. 2. Strict client-side filter as defense in depth. Any returned image whose `origin_url` or `image_url` hostname does not end in the entity domain is rejected before placement. Better to surface "no on-domain images found" via Notice than to silently insert third-party stock images. Prompt also tightened: it now instructs the model that searches are already domain-filtered and that returning fewer images (or none) is preferred over substituting generic stock content. Next escalation if this still falls short: direct DOM crawl of the entity URL (fetch HTML, parse <img> tags by alt-text/context match) — fully deterministic, no model judgment for image selection. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| modals | ||
| services | ||
| styles | ||
| types | ||
| utils | ||