| sfa_embedding_bank | R Documentation |
Turns an "sfa_bank" (or a path to one) into a lookup function that
sfa_coverage() and sfa_embed() accept as their embed argument, so
audits run entirely from published embeddings - no encoder loads.
sfa_embedding_bank(bank)
bank |
An |
A lookup miss is an error, not a fallback: the bank must contain every item, definition, and planned narrowing the audit touches. The error lists what is missing so the bank can be rebuilt to include it.
A function (texts) -> matrix, for use as embed = .
## Not run:
bank <- sfa_embedding_bank("bank_qwen8b.rds")
region <- sfa_load_region("regions_qwen8b/procrastination.rds")
audit <- sfa_coverage(my_items, region, embed = bank,
model = region$encoder)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.