Parse structured evidence from a RAG answer
Usage
parse_structured_evidence(answer)
Arguments
- answer
Character scalar LLM answer containing a fenced JSON block.
Value
A tibble parsed from the JSON block, or an empty tibble.
Examples
answer <- "## Structured data\n```json\n[{\"topic\":\"example\",\"confidence\":\"high\"}]\n```"
parse_structured_evidence(answer)
#> # A tibble: 1 × 2
#> topic confidence
#> <chr> <chr>
#> 1 example high