sfa_region_bank: Use a Region's Own Stored Embeddings as an Embedder

View source: R/bank.R

sfa_region_bankR Documentation

Use a Region's Own Stored Embeddings as an Embedder

Description

Turns an "sfa_region" into a lookup function over its own sentences, for use as ⁠embed =⁠ when the "items" of an audit are drawn from a region itself. The canonical use is the cross-audit region-overlap baseline: sentences sampled from construct region A are audited as pretend items against region B, so their embeddings come from A's own stored matrix and no encoder loads. Requires the two regions to share the same instruction (regions built together always do).

Usage

sfa_region_bank(region)

Arguments

region

An "sfa_region" (or path to one) with embeddings.

Value

A function (texts) -> matrix, for use as ⁠embed = ⁠.


semanticfa documentation built on Sept. 2, 2026, 1:07 a.m.