RagRequestRefinement

Narrowing of RagRequest

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:ApiStatus.Experimental
abstract val entitySearch: EntitySearch?
Link copied to clipboard
abstract val hyDE: HyDE?

Functions

Link copied to clipboard
open fun toRequest(query: String): RagRequest

Create a RagRequest from this refinement and a query.

Link copied to clipboard
abstract fun withCompression(compressionConfig: CompressionConfig): T
Link copied to clipboard
abstract fun withContentElementSearch(contentElementSearch: ContentElementSearch): T
Link copied to clipboard
abstract fun withDesiredMaxLatency(desiredMaxLatency: Duration): T
Link copied to clipboard
abstract fun withEntitySearch(entitySearch: EntitySearch): T
Link copied to clipboard
abstract fun withHyDE(hyDE: HyDE): T
Link copied to clipboard
abstract fun withSimilarityThreshold(similarityThreshold: <Error class: unknown class>): T
Link copied to clipboard
abstract fun withTopK(topK: Int): T