Skip to content

Neo4j GraphRAG Package for Python 1.2.0

Compare
Choose a tag to compare
@willtai willtai released this 28 Oct 11:11
· 24 commits to main since this release

https://github.com/neo4j/neo4j-graphrag-python/blob/main/CHANGELOG.md#120

What's New in 1.2.0

Enhanced Schema Building:

  • Optional Relations and Schema: Made relations and potential_schema optional in the SchemaBuilder, providing greater flexibility in knowledge graph construction.

Deprecation Safeguards:

  • Cypher Syntax Check: Added a mechanism to prevent the use of deprecated Cypher syntax for Neo4j versions 5.23.0 and above, ensuring compatibility with future Neo4j releases.

New Components:

  • LexicalGraphBuilder: Enables the import of the lexical graph (documents and chunks) without performing entity and relation extraction.
  • Neo4jChunkReader: Facilitates reading chunk text directly from the Neo4j database.

Changed in 1.2.0

Retriever Enhancements:

  • Embedding Property Filtering: HybridRetriever now excludes the embedding property index specified in self.vector_index_name from the retriever results by default, streamlining the output.

Pipeline Adjustments:

  • AsyncDriver Removal: Removed support for neo4j.AsyncDriver in the knowledge graph creation pipeline, affecting Neo4jWriter and related components. Updated examples and unit tests to reflect this change.

Fixed in 1.2.0

Inheritance Correction:

  • AzureOpenAIEmbeddings Fix: Resolved an issue where AzureOpenAIEmbeddings incorrectly inherited from OpenAIEmbeddings. It now correctly inherits from BaseOpenAIEmbeddings, ensuring proper functionality and integration.

Retriever Correction:

  • Extended Return Properties: Vector and Hybrid retrievers using return_properties now also return the node labels (nodeLabels) and the node's element ID (id), enriching the retriever results with additional metadata.