Skip to content

[FEATURE] Neo4j Integration Improvements List #111

@jexp

Description

@jexp

As part of the Neo4j integration in langchain4j community we want to improve the base functionality.

Neo4jGraph

  • Switch to driver.executeQuery to automatically get retries
  • Combine metadata retrieval into one query
  • Add option for enhanced schema with sample property values
  • Integration test for invalid query
  • Fixing generated queries, e.g. relationship-direction (e.g. with cypher-dsl)

Neo4jContentRetriever

  • Rename to Neo4jText2CypherContentRetriever
  • Re-generate with the question, query, error and re-run failed generated queries
  • Integration test for invalid query
  • Add a more comprehensive integration test with a bit more complex schema e.g. northwind?

Neo4j Vector Support

  • Add Hybrid Search with re-ranker, fulltext index generation
  • Add GraphRAG retrieval concepts
  • Support parent-child and entity-retrievers

Documentation & Examples

  • Document the existing and new features in more detail
  • Extend the example code repository with more practical examples

Graph Construction

  • LLMGraphTransformer equivalent
  • Provide GraphSchema from user or from Neo4jGraph
  • Prompt for entity extraction
  • Graph representation as response
  • Process Documents with LLM + Prompt + structured output
  • Allow Neo4jGraph to store graph representation response directly and efficiently (batched)

Graphs As Conversation / Agent Memory

  • Integrate Neo4j as storage for conversation history / memory similar to LC
  • Add agentic memory integration when possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions