| validate_rag_json | R Documentation |
Ensures the object has the expected fields and types: 'labels', 'confidences', 'intensity', and 'evidence_chunks'.
validate_rag_json(x, error = TRUE)
x |
A list (parsed JSON) to validate. |
error |
Logical; if TRUE, throws an error on invalid input. |
Invisibly returns TRUE when valid; otherwise FALSE or error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.