Package com.tnsai.rag
Class RetrievalRequest.Builder
java.lang.Object
com.tnsai.rag.RetrievalRequest.Builder
- Enclosing class:
RetrievalRequest
Builder with safe defaults for unscoped, non-cancellable retrieval.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()conversationId(String value) Sets the opaque identity of the conversation this request serves.metadataFilters(Map<String, String> value) scope(RetrievalScope value) sourcePaths(Map<String, Path> value) Sets the run-time location of declared sources, by source name.turnMessage(String value) Sets the raw message of the turn this request serves.
-
Method Details
-
scope
-
cancellationToken
-
deadline
-
timeout
-
timeout
-
metadataFilters
-
turnMessage
Sets the raw message of the turn this request serves.- Parameters:
value- the turn message; not blank- Returns:
- this builder
- Since:
- 0.18.6
-
conversationId
Sets the opaque identity of the conversation this request serves.- Parameters:
value- the conversation identity; not blank- Returns:
- this builder
- Since:
- 0.18.6
-
sourcePaths
Sets the run-time location of declared sources, by source name.- Parameters:
value- location by source name; copied- Returns:
- this builder
- Since:
- 0.18.6
-
build
-