Skip to content

PointSav Documentation

The engineering library for the PointSav platform — operating systems and services for regulated businesses that own their data, their AI, and their record-keeping outright. Where the monorepo holds the code, this wiki holds the reasoning: architecture, services, security, and the governance commitments that bind future development.

Tiered entity extraction architecture

← All revisions

5e8c53c6 · PointSav Digital Systems ·

fix(ai): Track-B rewrite tiered-entity-extraction-architecture — mostly accurate against real service-content pipeline; fixed GLiNER BERT->DeBERTa architecture error, dropped unsourced latency figures (130-208ms/30-137s/10-30s, none found in code), added undocumented 150-char chunk overlap, ES version additionally still linked the wrong crate (service-extraction) that EN had already corrected

View the full record as of this revision →

@@ -11,7 +11,7 @@ status: active
audience: vendor-public
bcsc_class: current-fact
language_protocol: PROSE-TOPIC
last_edited: 2026-07-11
last_edited: 2026-08-17
editor: editorial
short_description: "The entity extraction pipeline runs three tiers per document: Tier 0 fast extractive detection via GLiNER, Tier A generative fallback via OLMo, Tier B GPU enrichment."
paired_with: tiered-entity-extraction-architecture.es.md
@@ -26,11 +26,11 @@ The PointSav [[service-content|entity extraction pipeline]] runs three tiers in 

## Tier 0 — Extractive Detection (GLiNER)

Tier 0 routes document payloads to `service-gliner`, a GLiNER named entity recognition microservice running locally on the workspace VM. GLiNER is a BERT-encoder model that reads a text span and returns entity spans with classifications. It is purely extractive: it can only return spans that appear verbatim in the input text and cannot generate or infer names that are not present.
Tier 0 routes document payloads to `service-gliner`, a GLiNER named entity recognition microservice running locally on the workspace VM (`urchade/gliner_medium-v2.1`). GLiNER is a **DeBERTa**-encoder model, not BERT — the real code's own comment notes DeBERTa specifically because it releases the Python GIL, a real performance property BERT does not share. It reads a text span and returns entity spans with classifications, and is purely extractive: it can only return spans that appear verbatim in the input text and cannot generate or infer names that are not present.

Typical latency on CPU is 130–208 milliseconds per document. This is two to three orders of magnitude faster than generative inference.
Typical latency on CPU is stated elsewhere in the codebase only qualitatively — a comment describes GLiNER as roughly "150x faster than OLMo" — no specific millisecond figure like the one previously cited here was found in source; treat the exact number as unsourced rather than repeat it as fact.

Documents are split into sentence-boundary chunks of at most 2,000 characters each before dispatch. The BERT encoder operates on a fixed context of 512 tokens; prose at the 2,000-character limit occupies approximately 480 tokens, leaving room for the label description strings without truncation. All chunks are dispatched in sequence; entity spans from all chunks are merged and deduplicated by (lower(entity_name), classification) key before the result is written to the graph store. Long articles and multi-page documents are therefore fully covered.
Documents are split into sentence-boundary chunks of at most 2,000 characters each before dispatch, with a 150-character overlap between consecutive chunks (not previously documented here). The DeBERTa encoder operates on a fixed context of 512 tokens; prose at the 2,000-character limit occupies approximately 480 tokens, leaving room for the label description strings without truncation. All chunks are dispatched in sequence; entity spans from all chunks are merged and deduplicated by (lower(entity_name), classification) key before the result is written to the graph store. Long articles and multi-page documents are therefore fully covered.

Labels are expressed as plain-English descriptions rather than bare category names. The domain identifier in the document payload selects a label set:

@@ -50,7 +50,7 @@ Tier A routes document payloads to OLMo 7B running on the workspace VM's CPU via

Extraction uses a structured prompt that constrains the model to the same five entity classifications used by Tier 0. When grammar constraints are enabled, the model is forced to emit valid JSON conforming to the extraction schema, eliminating schema-violation rejections. The inference call uses `temperature: 0.0` to produce deterministic output and `cache_prompt: true` to allow KV-cache reuse across consecutive extraction calls on the same system prompt.

Tier A latency on CPU ranges from 30 to 137 seconds per document depending on document length and concurrent load. When the Doorman's [[apprenticeship-substrate|apprenticeship]] drain queue is active, Tier A slots may be occupied and interactive extraction calls will queue.
Tier A latency on CPU varies with document length and concurrent load; no specific range has a source citation, so none is asserted here. When the Doorman's [[apprenticeship-substrate|apprenticeship]] drain queue is active, Tier A slots may be occupied and interactive extraction calls will queue.

## Tier B — GPU Enrichment

@@ -76,6 +76,6 @@ Documents for which Tier 0 returns a non-empty entity list always proceed to Tie

| Tier | Service | Method | Typical latency | Activates when |
|---|---|---|---|---|
| 0 | service-gliner (GLiNER) | Extractive span detection | 130–208 ms | Default — first path |
| A | [[service-slm|service-slm]] (OLMo 7B CPU) | Generative completion | 30–137 s | Extraction: Tier 0 unreachable; Training: every document (async) |
| B | service-slm (GPU node) | Generative enrichment | 10–30 s | Circuit closed + node healthy |
| 0 | service-gliner (GLiNER, DeBERTa) | Extractive span detection | Not sourced — qualitatively "~150x faster than OLMo" per code comment | Default — first path |
| A | [[service-slm|service-slm]] (OLMo 7B CPU) | Generative completion | Not sourced in code | Extraction: Tier 0 unreachable; Training: every document (async) |
| B | service-slm (GPU node) | Generative enrichment | Not sourced in code | Circuit closed + node healthy |
Important Information

Corporate structure. PointSav Digital Systems ("PointSav") is currently a trade name of Woodfine Capital Projects Inc. ("Woodfine"), planned to become a wholly-owned Woodfine subsidiary upon incorporation. PointSav does not itself offer, sell, or solicit any security. Any securities offering associated with Woodfine's real-property direct-hold solutions is made exclusively by Woodfine, and only by means of the applicable Private Placement Memorandum.

No investment advice. This wiki's content is provided for engineering, operational, research, and development purposes. Nothing on this wiki constitutes investment advice or a solicitation to invest in any Woodfine partnership or direct-hold solution.

Intellectual property. The PointSav name, trade name, wordmark, and marks, together with all current and future PointSav- and Totebox-branded products, services, and offerings — and the software, source code, documentation, design system, and all related materials — are proprietary to Woodfine and its affiliates, except for components identified as open source. No rights are granted except as expressly set out in a written license or agreement. The full trademark notice appears in the footer of every page on this site.

Open source components. Portions of the platform are made available under permissive open-source licenses identified in the accompanying repository. Use of those components is governed by their respective license terms.

No warranty; informational use. Content on this wiki is provided for general informational purposes only and does not constitute a representation, warranty, or commitment with respect to product functionality, availability, pricing, or roadmap. Some articles describe planned or intended features, capabilities, and milestones — language such as "planned," "intended," "targeted," "may," and "expected" marks this forward-looking content, which is subject to change and does not constitute a commitment regarding future performance.

Confidentiality. Where an article describes an operational or deployment detail that is not intended for public disclosure, that article is not published on this wiki. Content here is general-purpose engineering documentation, not customer-specific configuration.

Jurisdiction. Woodfine Capital Projects Inc. is organized in British Columbia, Canada. References to the Sovereign Data Foundation on this wiki describe a planned or intended initiative only, not a current equity holder or active governance body.

Changes to this notice. PointSav may update this notice from time to time; the version posted on this page governs.

Not a filing system. This wiki is not a securities filing system, an electronic disclosure repository, or a substitute for SEDAR+ or any other regulatory filing system. Formal securities filings are made through the applicable regulatory filing system, not through this wiki.

Full disclaimer. This notice supplements, and does not replace, the full Disclaimers article. In the event of any conflict, the full Disclaimers article governs.

Read the full disclaimer →