RAGAnswerResult

org.llm4s.rag.RAGAnswerResult
final case class RAGAnswerResult(answer: String, question: String, contexts: Seq[RAGSearchResult], usage: Option[TokenUsage])

Result from RAG answer generation.

Value parameters

answer

The generated answer text

contexts

The chunks used as context for generation

question

The original question

usage

Optional token usage statistics

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product