NavigableRagService

@ApiStatus.Experimental
interface NavigableRagService : RagService

Rag service that supports navigation in a graph of retrievable objects. This may not be supported by all RAG services. It need not be a graph but could be implemented by a relational database or other structure.

Properties

Link copied to clipboard
abstract val name: String

Name of the RAG service. Should be unique per application instance. User code may use this to select a RAG service.

Functions

Link copied to clipboard
abstract fun explore(retrievable: Retrievable, explorationRequest: ExplorationRequest): Retrievable

Explore the graph of retrievable objects around the given retrievable object.

Link copied to clipboard
open fun provision()

Provision this rag service if necessary

Link copied to clipboard
abstract fun search(ragRequest: RagRequest): RagResponse

Make a RAG request