RagSearchResult class

Search result with assembled context.

Constructors

RagSearchResult({required List<ChunkSearchResult> chunks, required AssembledContext context})

Properties

chunks → List<ChunkSearchResult>
Individual chunk results.
final
context → AssembledContext
Assembled context for LLM.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toLlmJson({Map<int, String> sourceNames = const {}, int firstId = 1}) → Map<String, Object?>
JSON-ready view for handing results to an LLM, for example as a tool result: {"results": [...]}.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited