What's Changed
- Added support for custom database names in Neo4jChatMessageHistory (no longer limited to the default "neo4j").
- Introduced an optional mmr dependency group for maximal marginal relevance search, including numpy.
- Bumped the neo4j-graphrag dependency from ^1.5.0 to ^1.9.0.
- Prevented infinite loops in CypherQueryCorrector.extract_paths when a Cypher query contains repeated paths.
- Replaced direct result["text"] indexing with result.get("text") in Neo4jVector.similarity_search_with_score_by_vector to handle missing text fields gracefully.
- Updated the empty-list check in CypherQueryCorrector.detect_node_variables so nodes without an explicit variable are properly skipped, rather than misclassifying all labels under an empty variable.
- Stopped Neo4jChatMessageHistory from creating duplicate session nodes.
- Fixed a schema bug in Neo4jGraph (with enhance_schema=True) where relationships having boolean properties would trigger a malformed RETURN {} AS output Cypher query, preventing graph initialization.
- Ensured custom database names are correctly passed through to retrieve_vector_index_info and retrieve_existing_fts_index in Neo4jVector.
Full Changelog: https://github.com/langchain-ai/langchain-neo4j/blob/main/CHANGELOG.md#050