Entity and relationship extraction
Entity and relationship extraction is the technique of identifying entities, their relationships, and associated attributes in source content for structured representation.
AI-Powered Search
Entity extraction is the identification and extraction of entities from textual content.
- How it is used
- Improves semantic query interpretation by converting domain phrases and functions into structures that search ranking can use.
- How deep it goes
- Explains normalization, lookup structures, tagging, ambiguity resolution, and typed query construction, while deferring FST internals.
- Examples
- Uses “new york city” and “top kimchi near charlotte” to demonstrate phrase matching, semantic functions, cities, keywords, and query trees.
- What you can do after
- Apply it via Apache Solr and Python-style extraction code to build tagged queries and typed semantic query trees.
Read how AI-Powered Search explains entity and relationship extraction →
Essential GraphRAG
Entity extraction is the process of identifying and describing entities of specified types in source text.
- How it is used
- Builds graph-ready knowledge from document chunks for GraphRAG retrieval and cross-chunk analysis.
- How deep it goes
- Specifies entity fields, relationship fields, delimiters, model parsing, graph import, and inspection queries.
- Examples
- Uses The Odyssey, Ulysses, Orestes, gods, creatures, weapons, events, and generated relationship descriptions.
- What you can do after
- Builds a chunk-processing pipeline that extracts, imports, counts, and inspects graph entities and relationships.
Read how Essential GraphRAG explains entity and relationship extraction →
Also covered in
What to know first
- language modelA language model is a computational model of linguistic sequences that estimates their probabilities or predicts tokens from context, enabling it to generate or evaluate language.
- few-shot learningFew-shot learning is an approach in which a model is guided to perform or adapt to a task from only a small number of examples.
- similarity searchSimilarity search is a retrieval technique that finds or ranks items by comparing their representations with a query representation under a similarity or distance measure.
Related concepts
- language modelused by · A language model is a computational model of linguistic sequences that estimates their probabilities or predicts tokens from context, enabling it to generate or evaluate language.
- generative modelingused by · Generative modeling is a machine-learning approach that learns patterns or a data distribution to generate new samples resembling the data.
- entityproduces · An entity is a distinct, identifiable person, thing, concept, or subject represented in a data or software model.
- scispaCyuses · scispaCy is a Python library providing natural-language-processing models and pipelines specialized for scientific and biomedical text.
Questions about entity and relationship extraction
What is entity and relationship extraction?
Entity and relationship extraction is the technique of identifying entities, their relationships, and associated attributes in source content for structured representation.
Which Manning books explain entity and relationship extraction?
AI-Powered Search and Essential GraphRAG.
What should I know before learning entity and relationship extraction?
Manning books that teach entity and relationship extraction usually introduce language model, few-shot learning and similarity search first.
What is entity and relationship extraction part of?
Entity and relationship extraction is part of graph construction pipeline. A graph construction pipeline is a sequence of data-loading, information-extraction, entity-resolution, and graph-storage steps that builds a knowledge graph from source data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

