Rag Options
constructor(similarityThreshold: <Error class: unknown class> = 0.7, topK: Int = 8, hyDE: HyDE? = null, desiredMaxLatency: Duration = Duration.ofMillis(5000), compressionConfig: CompressionConfig = CompressionConfig(), llm: <Error class: unknown class> = LlmOptions.withAutoLlm(), contentElementSearch: ContentElementSearch = ContentElementSearch.CHUNKS_ONLY, entitySearch: EntitySearch? = null, ragResponseFormatter: RagResponseFormatter = SimpleRagResponseFormatter, service: String? = null, listener: RagEventListener = RagEventListener.NOOP, dualShot: DualShotConfig? = null)
Parameters
similarity Threshold
minimum similarity threshold for results (0.0 to 1.0)
top K
maximum number of results to return returned. If set, only the given entities will be searched for.
rag Response Formatter
formatter to convert RagResponse to String
service
optional name of the RAG service to use. If null, the default service will be used.
dual Shot
whether to use dual-shot RAG, where the first tool returns a summary and the second tool returns detailed results.