RagOptions

constructor(similarityThreshold: <Error class: unknown class> = 0.7, topK: Int = 8, compressionConfig: CompressionConfig = CompressionConfig(), llm: <Error class: unknown class> = LlmOptions.withAutoLlm(), labels: Set<String> = emptySet(), ragResponseFormatter: RagResponseFormatter = SimpleRagResponseFormatter, service: String? = null, listener: RagEventListener = RagEventListener.NOOP)

Parameters

similarityThreshold

minimum similarity threshold for results (0.0 to 1.0)

topK

maximum number of results to return

labels

optional set of labels to filter results. If not set all entities may be 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.