Package com.tnsai.rag.files
Class IncrementalTextFilesRetriever.Builder
java.lang.Object
com.tnsai.rag.files.IncrementalTextFilesRetriever.Builder
- Enclosing class:
IncrementalTextFilesRetriever
Builds an
IncrementalTextFilesRetriever.- Since:
- 0.18.6
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the retriever.interpreter(RecordInterpreter value) Sets what the records are read as;RecordInterpreter.NONEby default.Sets the masker applied to the evidence text before it is indexed and to the WARN lines;Masker.noOp(), which masks nothing, by default.Sets which episodes a search covers;IncrementalTextFilesRetriever.Scope.RUNby default.sourceName(String value) Sets the source name the evidence gives; "agent-files" by default.
-
Method Details
-
sourceName
Sets the source name the evidence gives; "agent-files" by default.- Parameters:
value- the name- Returns:
- this builder
- Throws:
IllegalArgumentException- ifvalueis blank
-
scope
Sets which episodes a search covers;IncrementalTextFilesRetriever.Scope.RUNby default.- Parameters:
value- the scope- Returns:
- this builder
-
interpreter
Sets what the records are read as;RecordInterpreter.NONEby default.- Parameters:
value- the interpreter- Returns:
- this builder
-
masker
Sets the masker applied to the evidence text before it is indexed and to the WARN lines;Masker.noOp(), which masks nothing, by default.- Parameters:
value- the masker- Returns:
- this builder
-
build
Builds the retriever.- Returns:
- the retriever
-