answer method

RagAnswer answer(
  1. String text
)

Pairs the LLM's text with the passages it cites.

Implementation

RagAnswer answer(String text) => RagAnswer(
  question: question,
  text: text,
  prompt: prompt,
  passages: passages,
  citations: citedPassages(text, passages),
);