Skip to contents

A CLOSED reflection vocabulary; an unknown or contradictory token is refused rather than ignored.

Usage

morie_kamath_self_rag(context, reflection_model, question = NULL)

Arguments

context

Retrieved context.

reflection_model

Token emitter.

question

Optional question.

Value

List with tokens, by_group, retrieve, utility.

Examples

morie_kamath_self_rag("ctx", function(c, q) "[Retrieve] [Relevant] [Utility:4]")
#> $tokens
#> [1] "[Retrieve]"  "[Relevant]"  "[Utility:4]"
#> 
#> $by_group
#> $by_group$retrieve
#> [1] "[Retrieve]"
#> 
#> $by_group$relevance
#> [1] "[Relevant]"
#> 
#> $by_group$utility
#> [1] "[Utility:4]"
#> 
#> 
#> $retrieve
#> [1] TRUE
#> 
#> $relevant
#> [1] TRUE
#> 
#> $supported
#> NULL
#> 
#> $support_level
#> NULL
#> 
#> $utility
#> [1] 4
#> 
#> $estimate
#> [1] 3
#> 
#> $n
#> [1] 3
#> 
#> $method
#> [1] "Self-RAG reflection-token decisions"
#>