SkillsReviewed · neo4j-contrib

Neo4j Document Import Skill

Neo4j Document Import Skill is a reusable guide for coding assistants and developers turning documents into Neo4j knowledge graphs, but its maturity labels and code examples are inconsistent. It covers splitting text, extracting entities and relationships with language models, storing embeddings and merging duplicate entities. It needs external software and configuration; nothing was executed.

Researched 16 Nov 2026

In short.

Neo4j Document Import Skill is an instruction pack for coding assistants and developers importing documents into Neo4j knowledge graphs, but its conflicting maturity labels and example inconsistencies require review before use. It combines Python pipeline guidance, a no-code Graph Builder route, JSON loading and framework integration examples. Its strongest coverage is schema design, chunking and entity resolution. Runtime compatibility, extraction accuracy and operating costs are unknown; nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied neo4j-document-import-skill folder: README.md, SKILL.md and references/kg-construction.md, together with the repository-level MIT LICENSE at commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5. It excludes other repository folders, companion skills, dependency implementations and linked websites. Installation, ingestion, graph output, extraction quality, compatibility and operating costs were not tested.

The overview

Identity

The resource is the neo4j-document-import-skill folder in neo4j-contrib/neo4j-skills. It contains assistant instructions, a short README and an extended knowledge-graph construction reference. Its metadata declares version 1.0.7. The captured source is pinned to commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5 [https://github.com/neo4j-contrib/neo4j-skills/tree/004c7823fc05d352647f2e9e5106d9ae2a4080e5/neo4j-document-import-skill].

The skill guides an assistant through other software rather than supplying an independent ingestion engine. Its principal Python route uses SimpleKGPipeline from neo4j-graphrag.

Assessment

The guide is useful for planning document ingestion because it connects decisions that otherwise span several tools: what facts to extract, how to split documents, where embeddings belong and how to resolve duplicate entities. It provides concrete code and configuration examples alongside those decisions.

Treat the examples as material to adapt and inspect. The README says Draft / WIP while SKILL.md says stable, and several snippets contain inconsistencies. No execution results, extraction evaluations or reproducible benchmarks establish reliability or production suitability.

Users

The main audience is developers and coding-assistant users building document ingestion for Neo4j applications. Developers already using LangChain receive a loader-and-writer example; LlamaIndex users receive approach suggestions and links, with less implementation detail.

Beginners and non-developers can follow the suggested LLM Graph Builder route for a web interface. They still need a Neo4j destination and suitable model configuration. Structured CSV imports, retrieval after ingestion and general Cypher authoring are routed to companion skills.

Capabilities

The skill describes importing PDFs, Markdown, plain text and HTML; extracting entities and relationships with a language model; preserving document metadata; storing text chunks and embeddings; and merging duplicate entities. PDF and Markdown have illustrated file-loader routes, while HTML and other formats can use custom loaders.

It also covers semi-structured JSON through apoc.load.json or Python, exact and similarity-based entity matching, configurable graph labels and experimental Parquet export. The extended reference compares fixed-size, paragraph, semantic and structural chunking. These are documented capabilities of the proposed tools and patterns, not demonstrated results.

The Graph Builder section lists additional sources such as images, web pages, YouTube transcripts and cloud buckets. Those source-handling implementations are outside the supplied files.

Using it

Requirements

For the Python route, the guide lists Python 3.10+, the neo4j driver package 5.17.0+ with driver 6.x support, and Neo4j server 5.18.1+ or Aura 5.18.0+. It requires neo4j-graphrag, database credentials, an LLM and an embedder. These are stated requirements; compatibility across all examples is not established.

Provider integrations require their corresponding dependencies and credentials. The sample uses OpenAIEmbeddings, so choosing an Ollama LLM alone does not make that example fully local. Fuzzy matching needs rapidfuzz; the guide limits its spaCy option to Python 3.13 or earlier. The extended reference says entity resolvers use APOC refactor.mergeNodes, making APOC availability relevant beyond JSON loading.

The skill metadata declares Bash and WebFetch as allowed tools. Compatibility with particular assistant hosts and enforcement of those declarations are not established.

Mechanism

A knowledge graph represents things and their relationships as connected records. Here, a loader reads a document, a splitter divides its text into overlapping passages, an embedder produces numerical vectors and a language model extracts candidate entities and relationships under a chosen schema.

The intended graph preserves Document and Chunk records, document membership, passage order and associations with extracted entities. Metadata records source information. Resolvers then merge entities using exact property matches, spelling similarity or semantic similarity.

The guide offers explicit GraphSchema definitions and model-inferred schemas. Explicit definitions constrain the vocabulary available to extraction; inferred or unrestricted schemas allow more variation. No measured accuracy difference is supplied.

Setup

The README provides an npx skills add installation route for the named skill from the repository [https://github.com/neo4j-contrib/neo4j-skills]. Its command does not pin a revision. For the Python route, the guide then installs neo4j-graphrag and provider extras; the principal installation lines do not pin that package either.

Before adapting the pipeline, choose compatible dependency versions, define the extraction schema, configure database access and supply both the LLM and embedder. Add appropriate uniqueness constraints and source metadata. The illustrated vector index uses 1536 dimensions; that value must agree with the chosen embedding model.

The sample sets on_error to IGNORE. During initial validation, its documented RAISE alternative would make extraction failures visible. The hosted Graph Builder is another setup route [https://llm-graph-builder.neo4jlabs.com/]; local deployment is illustrated with Docker Compose. Neither route was run.

Example

An illustrative task is importing report.pdf to capture people and their employers. Define Person and Organization node types with name properties and a WORKS_AT relationship, configure the LLM and embedder, and pass the PDF path plus source metadata to SimpleKGPipeline.run_async. The intended output connects source passages with extracted people, organizations and employment relationships.

This describes the supplied example's intended behavior, not an observed result. Its count queries can show whether records and relationships exist, but they cannot establish whether an employment claim matches the original sentence.

Assessment & evidence

Limitations

The graph descriptions disagree about MENTIONS direction: the main diagram and validation queries use Chunk-to-Entity relationships, while the extended reference describes Entity-to-Chunk relationships. The actual output direction needs confirmation before adopting those queries.

Read in isolation, the LangChain snippet passes an undefined url variable to GraphDatabase.driver. It also creates chunks with identifiers such as chunk-0 that repeat across documents or reimports; combined with the recommended uniqueness constraint, repeated identifiers can reject writes. These are static observations, not executed failures.

Some schema examples reference undeclared node types, including Event in a constraint and Location in a relationship pattern. The text also describes from_pdf as both deprecated and removed at version 1.15.0. The stated server minimums do not establish compatibility with every example, including queries prefixed CYPHER 25.

The Graph Builder guidance says long-form English works best, tabular data is a poor fit and visual diagrams are not extracted. Hosted model and embedding routes introduce external providers whose retention and privacy terms are not supplied.

Reasoning

The guide's useful design choices are defining a graph vocabulary before extraction and preserving source passages alongside candidate facts. Those structures provide a basis for inspecting results and tracing them back to documents; they do not guarantee factual correctness.

Matching rules need domain judgment. Name-only matching and uniqueness constraints can conflate distinct people with the same name, while fuzzy matching can merge similar but different entities. These risks follow from the illustrated rules; their frequency is unknown.

Chunking settings also require care: the guide describes token-based FixedSizeSplitter settings, while its LangChain paragraph reference uses character counts. Equal numeric sizes therefore do not establish equal model input sizes. Claims about superior extraction quality or faster bulk merging have no accompanying measurements.

Alternatives

The skill presents several routes for different needs: LLM Graph Builder for a web interface, SimpleKGPipeline for Python orchestration, APOC or Python for JSON, and manual chunk storage when entity extraction is unnecessary. LangChain is illustrated for an existing framework stack; LlamaIndex receives routing suggestions and external references.

For adjacent tasks, it points to neo4j-import-skill for structured imports, neo4j-graphrag-skill for retrieval, neo4j-vector-search-skill for vector index work and neo4j-cypher-skill for query authoring. Those companion resources are outside the supplied files, so their quality and current compatibility are unknown.

Evidence

The available source consists of README.md, SKILL.md and references/kg-construction.md from the skill folder, plus the repository-level LICENSE, all identified at commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5.

These files establish the documented instructions, examples and license terms. They supply no dependency implementation source, execution logs, benchmark results or measured extraction outcomes. Linked documentation and hosted services were not examined, and nothing was installed or executed.

Access & freshness

Costs

No prices or per-document usage totals are supplied. Total operating cost is unknown and depends on the Neo4j deployment, model and embedding providers, document volume, chunk overlap and repeated processing.

The extended reference notes that semantic chunking adds embedding calls. Local model execution still requires computing resources, and the illustrated OpenAI embedder remains a separate dependency unless replaced. The evidence establishes no zero-cost configuration or hosted Graph Builder pricing.

Rights

The repository-level MIT license permits use, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It disclaims warranties and liability. The notice names Neo4j Contrib as the 2026 copyright holder [https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/004c7823fc05d352647f2e9e5106d9ae2a4080e5/LICENSE].

That notice supports redistribution of the captured skill documentation. It does not establish licensing or service terms for dependencies, model providers, hosted services or documents supplied for ingestion.

Freshness

The supplied snapshot was captured on 16 November 2026 at 16:17 UTC. SKILL.md declares version 1.0.7 and stable status, while README.md declares Draft / WIP. Neither label establishes a release date or maintenance history.

The instructions discuss neo4j-graphrag changes through version 1.23.0 and include version-sensitive APIs and model identifiers. Current upstream releases, model availability and compatibility with the unpinned installation commands are unknown.

Actions

Choose the ingestion route that matches the input and available skills, then reconcile its examples with a specific dependency set. For the Python route, resolve schema inconsistencies, confirm relationship direction and use document-specific chunk identifiers with deliberate reimport behavior.

Before a larger import, use a small representative document with visible error reporting. Inspect source metadata, passage ordering, embeddings and a sample of extracted facts against the original text. Review proposed entity merges for false matches and record actual model usage and cost. These are recommended next steps; no validation results are available.

Evidence for this report

LICENSEnotice · checked 2026-11-16
neo4j-document-import-skill/README.mdselected · checked 2026-11-16
neo4j-document-import-skill/SKILL.mdselected · checked 2026-11-16