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
andget_schema
) - Improved documentation around the
Text2CypherTemplate
:- Class added to the API doc
- New example showcasing how to use a custom prompt