| sfa_build_bank | R Documentation |
Embeds texts (typically: every scale item, every construct definition,
and every planned narrowing of a study) under one encoder and stores the
vectors keyed by the exact strings sfa_coverage() will pass to its
embedder. Feed the result to audits via sfa_embedding_bank().
sfa_build_bank(
texts,
instruction = TRUE,
embed = "sbert",
model = NULL,
cache = TRUE,
file = NULL
)
texts |
Character vector of raw texts (items, definitions). Wrapped
with |
instruction |
|
embed, model, cache |
As in |
file |
Optional path to save the bank ( |
An "sfa_bank": vectors, texts, instruction, encoder,
timestamp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.