liveBook · Manning

Knowledge representation

As explained in Knowledge Graphs and LLMs in Action

Knowledge representation is the formal encoding of knowledge so that computational systems can store, interpret, and reason over it.

Knowledge representation is the language an intelligent system uses to structure, encode, store, and communicate domain information. It supports reasoning and prediction, helps people interpret outputs, and influences system capabilities, limitations, and processing efficiency. section 2.1

A practical knowledge-representation pipeline includes:

  • Acquire examples, evidence, rules, feedback, and environmental data. section 2.1 section 2.3
  • Convert raw, structured, or semistructured data into representations tailored to reasoning requirements. section 2.3
  • Store the resulting knowledge in one or more knowledge bases and pass it among reasoning engines. section 2.1 section 2.3
  • Refine knowledge through sequential or parallel processes while balancing expressiveness against processing efficiency. section 2.1

Explicit and implicit representations

A knowledge graph converts heterogeneous data into entities, relationships, and properties guided by an ontology or schema. A large language model instead encodes unstructured text as statistical patterns in dense vector spaces. Graph representations are inspectable and modifiable but require careful preparation; implicit representations capture contextual meaning with less preparation but are opaque. section 2.3

Figure 2.1 A high-level schema of an intelligent system. It is made of two component types: knowledge bases and reasoning engines. Each type can have multiple instances based on the system’s tasks.
figure

Use the architecture to trace how multiple knowledge bases and reasoning engines interact, including sequential, parallel, and knowledge-refinement flows. section 2.1

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Explains representation through acquisition, transformation, storage, reasoning, and explicit-versus-implicit trade-offs without specifying implementation code.
Examples
Contrasts graph entities, relationships, and properties with text-derived statistical patterns in large language models.
What you can do after
Evaluate representation choices against interpretability, flexibility, contextual coverage, preparation effort, and processing efficiency.
How it connects
Connects knowledge representation to reasoning, knowledge graphs, large language models, ontologies, schemas, and knowledge bases.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.