liveBook · Manning

Tuple

As explained in Retrieval Augmented Generation, The Foundational Ideas

A triple is a structured statement consisting of a subject, predicate, and object.

In a knowledge graph, a tuple (or triplet) states a relationship as subject, predicate, and object. It is the atomic unit connecting entities through an explicit relationship. section 12.0

A dependency relationship

(PaymentService, depends_on, AuthService) names PaymentService as the subject, depends_on as the predicate, and AuthService as the object. Extracting tuples from text makes relationships available for graph construction and retrieval. section 12.0 section 12.1.1

How Retrieval Augmented Generation, The Foundational Ideas covers it

How deep it goes
Defines the subject-predicate-object form and illustrates tuples as extracted facts loaded into a graph.
Examples
Uses (PaymentService, depends_on, AuthService) and (Thomas, researches, Alzheimer's) as tuple examples.
What you can do after
Understand how tuples encode graph relationships and how extraction converts passages into that representation.
How it connects
Connects tuples to entities, relationships, knowledge graphs, and graph-based retrieval.

Also explained in

Compare how 16 books explain tuple →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Retrieval Augmented Generation, The Foundational Ideas. The section links point to the parts of the book it draws on.