| as_rag_table | R Documentation |
Produces a long-form data.frame with columns: 'label', 'confidence', 'intensity', 'doc_id', 'span', 'score'.
as_rag_table(x, validate = TRUE)
x |
JSON string or parsed list. |
validate |
Logical; validate structure first. |
A data.frame suitable for statistical analysis.
j <- '{"labels":["joy","surprise"],"confidences":[0.8,0.5],
"intensity":0.7,"evidence_chunks":[]}'
as_rag_table(j)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.