RagRequest

constructor(query: String, similarityThreshold: <Error class: unknown class> = 0.8, topK: Int = 8, labels: Set<String> = emptySet())

Parameters

query

the query string to search for

similarityThreshold

the minimum similarity score for results (default is 0.8)

topK

the maximum number of results to return (default is 8)

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.