This repository has been archived by the owner on Feb 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
3.3.0 | Refactor configure_retriever
to be a class
#53
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…image upscaling and Streamlit UI Integrate Real-ESRGAN functionality into @2_🖼️_Image_Upscaler.py, replacing @image_upscaler. Update pyproject.toml to version 3.3.0 for FreeStream. This change leverages the latest advancements in image upscaling technology, providing users with a range of customization options within the Streamlit application.
- Renamed NOTE.MD to Implement-RealESRGAN.MD - Added create-generation-class.md with initial implementation of RetrieverConfigurator class, which transforms the `configure_retriever` function into a class. The class includes methods for loading documents, splitting documents, creating embeddings and storing in vectordb, defining retriever, getting retriever, and instantiating LLM(`ChatOpenAI`).
Renamed files and folders to adhere to a consistent naming convention. Additionally, updated the GPU ID setting due to limitations on Streamlit Community Cloud.
…lock. deleted a note
Refactored the RetrieveDocuments class to use a more object-oriented approach, introducing methods for loading documents and configuring the retriever. The class now initializes with uploaded files and provides separate methods for loading documents and configuring the retriever. This change enhances readability and maintainability while allowing for better separation of concerns within the class.
Reformatted the utility functions in RAGbot.py for better readability and maintainability. Introduced a new class RetrieveDocuments to handle document retrieval, and updated the configuration of the retriever accordingly. This change aims to improve code organization and make it easier to manage and extend utility functions in the future.
formatted code
configure_retriever
to be a class
… constructor Added type hinting for the `uploaded_files` parameter in the `RetrieveDocuments` class constructor to specify that it should be a list of `Document` objects. This change improves code readability and helps catch potential type-related errors during development.
…raph Adjusted the height of the footer from 42px to 40px for better visual alignment. Also added a margin of 0 to the paragraph within the footer to ensure consistent spacing.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
chore(utility_funcs.py):
Refactored the RetrieveDocuments class to use a more object-oriented approach, introducing methods for loading documents and configuring the retriever. The class now initializes with uploaded files and provides separate methods for loading documents and configuring the retriever. This change enhances readability and maintainability while allowing for better separation of concerns within the class.