Uses of Record Class
com.tnsai.rag.RetrievalResult
Packages that use RetrievalResult
-
Uses of RetrievalResult in com.tnsai.rag
Methods in com.tnsai.rag that return RetrievalResultModifier and TypeMethodDescriptionstatic RetrievalResultRetrievalResult.empty()Returns a successful empty retrieval outcome.RetrievedContextRenderer.Segment.result()Returns the value of theresultrecord component.ChatKnowledgeBinding.retrieve(String query, ChatRetrievalContext context) Retrieves evidence for one outbound chat request.RetrievalEngine.retrieve(RetrievalRequest request) Retrieves evidence for one chat or action invocation.RetrievalEngine.Retriever.retrieve(RetrievalRequest request) Executes retrieval for a validated request.Methods in com.tnsai.rag with parameters of type RetrievalResultModifier and TypeMethodDescriptionstatic StringRetrievedContextRenderer.render(String userMessage, ChatKnowledgeContext.Turn turn, RetrievalResult result, int contextWindow) Renders a chat turn's knowledge behind one boundary: the blocks declared before the first SEARCH entry, the SEARCH evidence within the context window, then the blocks declared after it.static StringRetrievedContextRenderer.render(String userMessage, RetrievalResult result, int contextWindow) Renders canonical retrieval evidence within the configured context window.static List<KnowledgeUsage> RetrievedContextRenderer.searchUsage(List<String> sources, RetrievalResult result, int contextWindow) Says what each SEARCH source gave whenresultis rendered withincontextWindow: the evidence that fits, as therendermethods cut it, attributed to its source.Constructors in com.tnsai.rag with parameters of type RetrievalResultModifierConstructorDescriptionSegment(ChatKnowledgeContext.Turn turn, RetrievalResult result, int contextWindow) Rejects a missing turn.