Skip to main content

Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j

Workflow preview

Workflow preview
100%
Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Transform Research Papers into a Searchable Knowledge Graph This workflow automatically builds a...

Best for

  • AI RAG automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-pdfvector.pdfvector, n8n-nodes-base.openai, n8n-nodes-base.code, n8n-nodes-base.neo4j, n8n-nodes-base.postgres

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by PDF Vector.

Original n8n.io source

1.1 Workflow description

Title
Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j
Workflow name
Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Transform Research Papers into a Searchable Knowledge Graph

This workflow automatically builds and maintains a comprehensive knowledge graph from academic papers, enabling researchers to discover connections between concepts, track research evolution, and perform semantic searches across their field of study. By combining PDF Vector's paper parsing capabilities with GPT-4's entity extraction and Neo4j's graph database, this template creates a powerful research discovery tool.

Target Audience & Problem Solved

This template is designed for:

  • Research institutions building internal knowledge repositories
  • Academic departments tracking research trends and collaborations
  • R&D teams mapping technology landscapes
  • Libraries and archives creating searchable research collections

It solves the problem of information silos in academic research by automatically extracting and connecting key concepts, methods, authors, and findings across thousands of papers.

Prerequisites

  • n8n instance with PDF Vector node installed
  • OpenAI API key for GPT-4 access
  • Neo4j database instance (local or cloud)
  • Basic understanding of graph databases
  • At least 100 API credits for PDF Vector (processes ~50 papers)

Step-by-Step Setup Instructions

  1. Configure PDF Vector Credentials

    • Navigate to Credentials in n8n
    • Add new PDF Vector credentials with your API key
    • Test the connection to ensure it's working
  2. Set Up Neo4j Database

    • Install Neo4j locally or create a cloud instance at Neo4j Aura
    • Note your connection URI, username, and password
    • Create database constraints for better performance:
      CREATE CONSTRAINT paper_id IF NOT EXISTS ON (p:Paper) ASSERT p.id IS UNIQUE;
      CREATE CONSTRAINT author_name IF NOT EXISTS ON (a:Author) ASSERT a.name IS UNIQUE;
      CREATE CONSTRAINT concept_name IF NOT EXISTS ON (c:Concept) ASSERT c.name IS UNIQUE;
      
  3. Configure OpenAI Integration

    • Add OpenAI credentials in n8n
    • Ensure you have GPT-4 access (GPT-3.5 can be used with reduced accuracy)
    • Set appropriate rate limits to avoid API throttling
  4. Import and Configure the Workflow

    • Import the template JSON into n8n
    • Update the search query in the "PDF Vector - Fetch Papers" node to your research domain
    • Adjust the schedule trigger frequency based on your needs
    • Configure the PostgreSQL connection for logging (optional)
  5. Test with Sample Papers

    • Manually trigger the workflow
    • Monitor the execution for any errors
    • Check Neo4j browser to verify nodes and relationships are created
    • Adjust entity extraction prompts if needed for your domain

Implementation Details

The workflow operates in several stages:

  1. Paper Discovery: Uses PDF Vector's academic search to find relevant papers
  2. Content Parsing: Leverages LLM-enhanced parsing for accurate text extraction
  3. Entity Extraction: GPT-4 identifies concepts, methods, datasets, and relationships
  4. Graph Construction: Creates nodes and relationships in Neo4j
  5. Statistics Tracking: Logs processing metrics for monitoring

Customization Guide

Adjusting Entity Types: Edit the GPT-4 prompt in the "Extract Entities" node to include domain-specific entities:

// Add custom entity types like:
// - Algorithms
// - Datasets
// - Institutions
// - Funding sources

Modifying Relationship Types: Extend the "Build Graph Structure" node to create custom relationships:

// Examples:
// COLLABORATES_WITH (between authors)
// EXTENDS (between papers)
// FUNDED_BY (paper to funding source)

Changing Search Scope:

  • Modify providers array to include/exclude databases
  • Adjust year range for historical or recent focus
  • Add keyword filters for specific subfields

Scaling Considerations:

  • For large-scale processing (>1000 papers/day), implement batching
  • Use Redis for deduplication across runs
  • Consider implementing incremental updates to avoid reprocessing

Knowledge Base Features:

  • Automatic concept extraction with GPT-4
  • Research timeline tracking
  • Author collaboration networks
  • Topic evolution visualization
  • Semantic search interface via Neo4j

Components:

  1. Paper Ingestion: Continuous monitoring and parsing
  2. Entity Extraction: Identify key concepts, methods, datasets
  3. Relationship Mapping: Connect papers, authors, concepts
  4. Knowledge Graph: Store in graph database
  5. Search Interface: Query by concept, author, or topic
  6. Visualization: Interactive knowledge exploration

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Knowledge Base Info

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Daily KB Update

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1

Block 3 - PDF Vector - Fetch Papers

Type / Role
n8n-nodes-pdfvector.pdfVector - pdfVector
Config choices
Version 1

Block 4 - PDF Vector - Parse Papers

Type / Role
n8n-nodes-pdfvector.pdfVector - pdfVector
Config choices
Version 1

Block 5 - Extract Entities

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 6 - Build Graph Structure

Type / Role
n8n-nodes-base.code - code
Config choices
Version 1

Block 7 - Create Graph Nodes

Type / Role
n8n-nodes-base.neo4j - neo4j
Config choices
Version 1

Block 8 - Create Relationships

Type / Role
n8n-nodes-base.neo4j - neo4j
Config choices
Version 1

Block 9 - KB Statistics

Type / Role
n8n-nodes-base.code - code
Config choices
Version 1

Block 10 - Log KB Update

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 1

3. Summary Table

Workflow Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j
Complexity intermediate
Nodes 10
Categories AI RAG, Multimodal AI
Author PDF Vector
Published 14 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7362/7362.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build academic knowledge graph from research papers with PDF vector, GPT-4 and Neo4j do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Transform Research Papers into a Searchable Knowledge Graph This workflow automatically builds a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI RAG, Multimodal AI use case.