Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore backwards compatibility for LightRAG's ainsert method #555

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

ParisNeo
Copy link
Contributor

@ParisNeo ParisNeo commented Jan 8, 2025

Makes the split_by_character parameter optional in ainsert method to maintain backwards compatibility with existing code.

Details:

The ainsert method in LightRAG class was recently modified to include a new split_by_character parameter
This change broke backwards compatibility for code using the previous method signature
Fixed by making split_by_character parameter optional with a default value of None
Impact:

Restores compatibility with existing code using the old method signature
Maintains new functionality for users who want to use character splitting
No breaking changes

@LarFii
Copy link
Collaborator

LarFii commented Jan 9, 2025

Thanks!

@LarFii LarFii merged commit 92ccfa2 into HKUDS:main Jan 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants