| foundry_consistency | R Documentation |
Run the same extraction multiple times and summarize how often each input receives the same structured result. Use batch execution externally for large jobs; this helper intentionally keeps the local loop simple.
foundry_consistency(text, schema, n = 3L, ...)
text |
Character vector of inputs. |
schema |
List. JSON Schema object. |
n |
Integer. Number of repeated extractions. |
... |
Additional arguments passed to |
A tibble with one row per input.
## Not run:
# Requires a configured Azure endpoint, credentials, and AZURE_FOUNDRY_MODEL
# naming a deployment that supports structured outputs.
schema <- foundry_schema(label = schema_enum(c("yes", "no")))
foundry_consistency(c("Example text"), schema, n = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.