-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fixes and Enhancements for PostgreSQL and JSON Document Storage #837
Conversation
lightrag/kg/postgres_impl.py
Outdated
element["id"]: DocProcessingStatus( | ||
content=result[0]["content"], | ||
content_summary=element["content_summary"], | ||
content_length=element["content_length"], | ||
status=element["status"], | ||
created_at=element["created_at"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove str()?
It is not needed here.
It comes from the other implementation.
Thanks 🙏🏻
How are we going to handle wiping out the database? |
Small reviews to apply after that I will merge. |
lightrag/kg/postgres_impl.py
Outdated
element["id"]: DocProcessingStatus( | ||
content=result[0]["content"], | ||
content_summary=element["content_summary"], | ||
content_length=element["content_length"], | ||
status=element["status"], | ||
created_at=element["created_at"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove str()?
It is not needed here.
It comes from the other implementation.
Thanks 🙏🏻
else: | ||
exist_keys = [] | ||
new_keys = set([s for s in keys if s not in exist_keys]) | ||
print(f"keys: {keys}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove all the print. 🙏🏻
By the way thanks for the documentation for Postgres. |
Description:
This pull request addresses several issues related to document storage in PostgreSQL and JSON handling. The following changes have been implemented:
Added Missing Drop Methods
Fixed Key Filtering for PostgreSQL
Fixed PostgreSQL Implementation for Status Gathering
Linting: