Skip to content

Commit a7dc917

Browse files
committed
fix(comparisons): read comparison leads as text in the seo e2e and tighten relevance ai sourcing
1 parent ef4b937 commit a7dc917

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎apps/sim/lib/compare/data/competitors/relevance-ai.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const relevanceAiProfile: CompetitorProfile = {
4848
{
4949
question: 'Can I self-host Relevance AI, or do I need a platform like Sim?',
5050
answer:
51-
"Relevance AI cannot be self-hosted: it runs as a multi-tenant hosted service, its security page says single-tenant options are still in the works, and its code is not published. Sim's core is Apache 2.0 licensed and can be self-hosted with Docker Compose or Kubernetes (Helm), so your team runs the whole platform. Relevance AI's answer to data location is a region choice at signup (US, EU, or Australia), which cannot be changed later.",
51+
"Relevance AI cannot be self-hosted: it runs as a multi-tenant hosted service, its security page says single-tenant options are still in the works, and its code is not published. Sim's core is Apache 2.0 licensed and can be self-hosted with Docker Compose or Kubernetes (Helm), so your team runs the whole platform. Relevance AI's answer to data location is a region choice at signup (US, EU, or Australia); changing it afterwards means contacting support.",
5252
},
5353
{
5454
question: 'How does Relevance AI pricing compare to Sim?',
@@ -154,8 +154,8 @@ export const relevanceAiProfile: CompetitorProfile = {
154154
shortDescription:
155155
'SSO, RBAC, audit logs, and evals need Enterprise; RBAC is still rolling out.',
156156
source: {
157-
url: 'https://relevanceai.com/docs/get-started/pricing',
158-
label: 'Pricing | Relevance AI Docs',
157+
url: 'https://relevanceai.com/docs/enterprise/rbac',
158+
label: 'Role-based access controls (RBAC) | Relevance AI Docs',
159159
asOf: '2026-11-19',
160160
},
161161
},

‎apps/sim/scripts/test-landing-seo-e2e.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,15 @@ async function run() {
505505
continue
506506
}
507507
const text = decodeHtml(body)
508-
const lead = profile.leadAnswer?.map((part) => (typeof part === 'string' ? part : part.text))
509-
const firstSection = text.indexOf('<h2')
510-
const leadAt = lead ? text.indexOf(lead.join('')) : -1
508+
const lead = profile.leadAnswer
509+
?.map((part) => (typeof part === 'string' ? part : part.text))
510+
.join('')
511+
const $ = load(body)
512+
const blocks = $('p, h2').toArray()
513+
const leadAt = lead
514+
? blocks.findIndex((el) => el.tagName === 'p' && $(el).text().includes(lead))
515+
: -1
516+
const firstSection = blocks.findIndex((el) => el.tagName === 'h2')
511517
if (leadAt < 0 || leadAt > firstSection) {
512518
failures.push(`${profile.id}: lead answer missing or below the first section`)
513519
}

0 commit comments

Comments
 (0)