LLMs sound confident, but they forget context, invent facts and can't show their reasoning. A knowledge graph gives them structured, traceable facts to work from. What you'll do in this book is grow a single Neo4j graph from the Python Enhancement Proposals, which are the documents that shaped the language. It starts with getting to grips with nodes and relationships and writing Cypher like a pro. Then you design a schema in Pydantic, chunk documents into a lexical graph and extract entities with spaCy and local LLMs. Then, you add vector embeddings and indexes, and combine full-text search, vector search and graph traversal into GraphRAG retrieval that cites its sources.
The rest of the book goes into more detail. You can rank and cluster nodes with Graph Data Science, infer new facts with rules, import ontologies and validate data with SHACL. You also give LangGraph agents guarded Cypher tools, serve the graph over MCP, store agent memory with Graphiti and trace every decision. At the end of the day, you keep the graph healthy with regular refreshes, time-bound facts, evaluation runs, query tuning and backups.
Key LearningsWrite expressive, parameterized Cypher queries from Python.
Design graph schemas with Pydantic, constraints and indexes.
Chunk documents into lexical graphs with batched ingestion pipelines.
Extract entities and relationships using spaCy rules and schema-guided local LLMs.
Store embeddings in Neo4j and query them through vector indexes and similarity metrics.
Build GraphRAG retrievers for full-text, vector search and subgraph expansion.
Rank, cluster and predict links with PageRank, Leiden and GDS pipelines.
Infer facts with Cypher rules, SKOS ontologies and SHACL shape validation.
Connect LangGraph agents to graphs through guarded Cypher tools, MCP and Graphiti memory.
Operate graphs with incremental refreshes, temporal facts, evaluation runs, tuning and backups.
Table of ContentThinking in Nodes and Relationships
Writing Cypher with Confidence
Designing Graph Schema
Preparing Data and Chunks
Extracting Entities and Relationships
Structuring Embeddings in Graphs
Retrieving with Vectors and Structure
Analyzing Graph Structure
Reasoning Symbolically over Knowledge
Connecting AI Agents to Graphs
Keeping Knowledge Graphs Healthy
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。