Fix/frontend parallel load#201
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.
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.
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