RagOptions

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

similarityThreshold

minimum similarity threshold for results (0.0 to 1.0)

topK

maximum number of results to return returned. If set, only the given entities will be searched for.

ragResponseFormatter

formatter to convert RagResponse to String

service

optional name of the RAG service to use. If null, the default service will be used.

dualShot

whether to use dual-shot RAG, where the first tool returns a summary and the second tool returns detailed results.