Package-level declarations
Types
Convenience base class for WritableRagService implementations.
Traditional RAG. Text chunk
Root of a hierarchy of content elements.
Root of a structured document
Cluster of similar entities
Generic retrieved entity
ContentElement that exists in a hierarchy, such as a document with sections and subsections.
Contains content
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
Adds a name to the well known entity data.
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.
RAGAS quality metrics
RAG request. Contains a query and parameters for similarity search.
Narrowing of RagRequest
Rag response RagResponses can contain results from multiple RAG services. Results are not necessarily chunks, but can be entities.
Implemented by classes that can format RagResponse objects into a string for inclusion in tool responses or prompts.
Central interface for Retrieval-Augmented Generation (RAG) services. Returns entities as well as text chunks.
RagService comparable to a Spring Data repository.
A Retrievable object instance is a ContentElement (normally a chunk or an entity) that can be retrieved by RAG. It has a stable id.
Any retrievable entity, whether mapped or generic.
Sensible default RagResponseFormatter
A Source object instance is an input such as a Chunk or a Fact. It was provided to the system as data; it is not inferred by the system, but a direct piece of data.
RagService that can accept documents