neo4j-graphrag-python
neo4j-graphrag-python copied to clipboard
LangChain Compability Restored
Description
The additional arguments we previously introduced to the invoke function in LLMInterface broke compatibility with LangChain. This change introduces a new LLMInterfaceV2 contract that is fully compatible with LangChain while maintaining backward compatibility. If any users have implemented the old LLMInterface manually, their implementations will continue to work without modification.
Resolves https://github.com/neo4j/neo4j-graphrag-python/issues/383
Type of Change
- [ ] New feature
- [x] Bug fix
- [ ] Breaking change
- [ ] Documentation update
- [ ] Project configuration change
Complexity
Moderate. Even though a new contract provided, the old contact is still valid to offer backward compability.
Complexity:
How Has This Been Tested?
- [x] Unit tests
- [x] E2E tests
- [x] Manual tests
Checklist
The following requirements should have been met (depending on the changes in the branch):
- [ ] Documentation has been updated
- [x] Unit tests have been updated
- [x] E2E tests have been updated
- [ ] Examples have been updated
- [x] New files have copyright header
- [x] CLA (https://neo4j.com/developer/cla/) has been signed
- [ ] CHANGELOG.md updated if appropriate