-
Notifications
You must be signed in to change notification settings - Fork 4
Fix/frontend parallel load #201
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
base: dev
Are you sure you want to change the base?
Conversation
become align with metadata
This reverts commit 84597c2.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
/gemini review |
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.
Code Review
This pull request introduces parallel loading for images and tables in the frontend, which is a great performance improvement. The code has been refactored to use asyncio.gather effectively. Additionally, several fixes are included, such as increasing the timeout for chat requests and improving error handling and status reporting across different UI pages. My review focuses on a few areas for improvement: correcting a blocking I/O call in an async function, fixing incorrect or missing type hints to improve code quality and maintainability, and cleaning up some duplicated code. Overall, these are solid changes that enhance the application's performance and robustness.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
NotYuSheng
left a comment
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.
Approved! Will verify status before merging
User description
Summary
Fixes #166
Changes Made
Context / Rationale
Feature refining
Related Docs or References
General Checklist
PR Type
Enhancement, Bug fix
Description
Implement parallel loading for images and tables UI
Fix embedding results display and timeout handling
Refactor document components for better reusability
Update chat prompts and add timeout configuration
Diagram Walkthrough
File Walkthrough
rag_config.py
Update RAG validation examples and chunk formattingchat_service/models/rag_config.py
2_images_UI.py
Implement parallel loading and enhance image extraction UIfrontend/my_pages/2_images_UI.py
asyncio.gather()for multipledocuments
handling
3_tables_UI.py
Implement parallel loading for table extractionfrontend/my_pages/3_tables_UI.py
asyncio.gather()5_chat_UI.py
Add timeout and update chat promptsfrontend/my_pages/5_chat_UI.py
7_metadata_UI.py
Improve metadata display error handlingfrontend/my_pages/7_metadata_UI.py