@xapp/arachne-web-service 1.42.3 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ import { ServicePageKind } from "./selectServicePages";
|
|
|
4
4
|
/**
|
|
5
5
|
* Bumped whenever the prompt, schema or normalizer changes, so stored extractions can be compared by version.
|
|
6
6
|
*/
|
|
7
|
-
export declare const EXTRACTOR_VERSION = "2026-11-
|
|
7
|
+
export declare const EXTRACTOR_VERSION = "2026-11-17.1";
|
|
8
8
|
/**
|
|
9
9
|
* Default cap on the page text sent to the LLM, in tokens (estimated at four characters a token).
|
|
10
10
|
*/
|
|
@@ -17,7 +17,7 @@ const ServiceTaxonomy_1 = require("../taxonomy/ServiceTaxonomy");
|
|
|
17
17
|
/**
|
|
18
18
|
* Bumped whenever the prompt, schema or normalizer changes, so stored extractions can be compared by version.
|
|
19
19
|
*/
|
|
20
|
-
exports.EXTRACTOR_VERSION = "2026-11-
|
|
20
|
+
exports.EXTRACTOR_VERSION = "2026-11-17.1";
|
|
21
21
|
/**
|
|
22
22
|
* Default cap on the page text sent to the LLM, in tokens (estimated at four characters a token).
|
|
23
23
|
*/
|
|
@@ -418,8 +418,8 @@ class ServiceExtractor {
|
|
|
418
418
|
.join("\n");
|
|
419
419
|
return `A home-services directory tagged a business (classified trade: ${trade}) with the jobs below. Each tag was taken from phrases quoted from the business's own website, with the page each came from.
|
|
420
420
|
For each tag decide whether the quoted phrases show the business ITSELF PERFORMS that job for its customers, as the slug names it.
|
|
421
|
-
Keep a tag when a phrase names the job, or a plain synonym of it, in a list of services, a menu, a heading or a description of what the business does — a bare item like "Shower valve replacement" on a services page is a service it performs. Keep it when the phrase describes a project the business did that is that job.
|
|
422
|
-
Reject a tag when: the phrase only names a product the business sells, stocks or supplies (a store, supply yard, nursery or showroom does not perform installation unless it says it installs); the phrase is about a different job than the slug (a merely related, broader or narrower job is not the same job, e.g. a poured concrete sidewalk is not a paver walkway, window cleaning is not roof moss removal); the phrase comes from a job posting or careers page; the phrase is a customer review of some other work; the phrase is generic marketing that names no job; the business only serves commercial or industrial clients and the slug is a home service.
|
|
421
|
+
Keep a tag when a phrase names the job, or a plain synonym of it, in a list of services, a menu, a heading or a description of what the business does — a bare item like "Shower valve replacement" on a services page is a service it performs. Keep it when the phrase describes a project the business did that is that job. A business's own sales line or question about the job is an offer of it: "Interested in a new garage door opener? We carry Liftmaster" offers opener installation, "Attic insulation is the #1 factor in comfort" on an insulation company's page offers insulation, "count on us in a heavy storm" on a snow page offers snow removal.
|
|
422
|
+
Reject a tag when: the phrase only names a product the business sells, stocks or supplies (a store, supply yard, nursery or showroom does not perform installation unless it says it installs); the phrase is about a different job than the slug (a merely related, broader or narrower job is not the same job, e.g. a poured concrete sidewalk is not a paver walkway, window cleaning is not roof moss removal); the phrase comes from a job posting or careers page; the phrase comes from an article, guide or blog post written to inform rather than to sell (ideas, tips, how-to, "explore how … can help"); the phrase is a customer review of some other work; the phrase is generic marketing that names no job; the business only serves commercial or industrial clients and the slug is a home service.
|
|
423
423
|
Answer for every tag, by its number.
|
|
424
424
|
|
|
425
425
|
Tags:
|