Package-level declarations

Types

Link copied to clipboard
interface Chunk : Source

Traditional RAG. Text chunk

Link copied to clipboard
data class DefaultRagResponse(val service: String, val results: List<<Error class: unknown class><out Retrievable>>, val timestamp: Instant) : RagResponse
Link copied to clipboard
Link copied to clipboard
interface Embedded

Embedded object instance.

Link copied to clipboard
data class EntityCluster<E>(val anchor: E, val similar: List<<Error class: unknown class><E>>)

Cluster of similar entities

Link copied to clipboard

Generic retrieved entity

Link copied to clipboard
sealed interface ExplorationRequest
Link copied to clipboard
data class Fact(val assertion: String, val authority: String, val metadata: Map<String, Any?> = emptyMap(), val id: String = UUID.randomUUID().toString()) : Source

A fact.

Link copied to clipboard
interface Ingester
Link copied to clipboard
data class IngestionResult(val storesWrittenTo: Set<String>, val chunkIds: List<String>)
Link copied to clipboard

Entity mapped with JPA, Neo OGM or another persistence tool. Will be a JVM object. What it exposes beyond RetrievableEntity methods is a matter for the RagService in the application. MappedEntity objects have their own distinct types and can expose

Link copied to clipboard

Adds a name to the well known entity data.

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
data class RagRequest(val query: String, val similarityThreshold: <Error class: unknown class> = 0.8, val topK: Int = 8, val labels: Set<String> = emptySet())

RAG request. Contains a query and parameters for similarity search.

Link copied to clipboard
interface RagResponse

Response to a RAG request. Embabel RagResponses can contain results from multiple RAG services. Results are not necessarily chunks, but can be entities.

Link copied to clipboard
fun interface RagResponseFormatter

Implemented by classes that can format RagResponse objects into a string for inclusion in tool responses or prompts.

Link copied to clipboard
interface RagService

Central interface for Retrieval-Augmented Generation (RAG) services. Returns entities as well as text chunks.

Link copied to clipboard

RagService comparable to a Spring Data repository.

Link copied to clipboard
interface Retrievable

A Retrievable object instance is a chunk or an entity It has a stable id.

Link copied to clipboard

Any retrievable entity, whether mapped or generic.

Link copied to clipboard
data class SimpleNamedEntityData(val id: String, val name: String, val description: String, val labels: Set<String>, val properties: Map<String, Any>, val metadata: Map<String, Any?> = emptyMap()) : NamedEntityData
Link copied to clipboard

Sensible default RagResponseFormatter

Link copied to clipboard
sealed interface Source : Retrievable

A Source object instance is an input such as a Chunk or a Fact.

Link copied to clipboard
interface Sourced

Implemented by objects that are from a source.

Link copied to clipboard