Skip to content

Neo4j GraphRAG Package for Python 1.3.0

Latest
Compare
Choose a tag to compare
@stellasia stellasia released this 16 Dec 14:18
· 1 commit to main since this release

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

What's New in 1.3.0

Entity and Relation Extraction Improvements

  • Updated LLM prompt for Entity and Relation extraction to include stricter instructions for generating valid JSON.
  • Integrated json-repair package to handle and repair invalid JSON generated by LLMs.
  • Introduced InvalidJSONError exception for handling cases where JSON repair fails.

SimpleKGPipeline from config files

  • Added the ability to create a Pipeline or SimpleKGPipeline from a config file. See the example.

Ollama support

  • Added OllamaLLM and OllamaEmbeddings classes to make Ollama support more explicit.
    • Implementations using the OpenAILLM and OpenAIEmbeddings classes will still work.

Changed in 1.3.0

  • The default prompt in the ERExtractionTemplate prompt template has been updated to include more instructions about the expected return format.

Fixed in 1.3.0

Documentation

  • Added schema functions to the documentation (get_structured_schema and get_schema)
  • Improved documentation around the Text2CypherTemplate:
    • Class added to the API doc
    • New example showcasing how to use a custom prompt