Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

3.4.2 | bug fixes #58

Merged
merged 3 commits into from
Mar 11, 2024
Merged

3.4.2 | bug fixes #58

merged 3 commits into from
Mar 11, 2024

Conversation

Daethyra
Copy link
Owner

@Daethyra Daethyra commented Mar 11, 2024

  • fixed/refactored RetrieveDocuments class by moving the uploaded_files list from the initialization of the class to the configure_retriever method itself
  • ensured configure retriever is used every time a new file is uploaded
  • removed redundant code

… method

Refactored the `RetrieveDocuments` class to remove the dependency on uploaded_files in the constructor. Updated the `configure_retriever` method to accept a list of Document objects as an argument, allowing for more flexibility in handling uploaded files. This change simplifies the class initialization and improves the separation of concerns within the class. Additionally, it enhances the configurability of the retriever by enabling it to work with different sets of documents.
Refactored the conversation history display and message clearing functionality. Updated the logic to show a default AI message when the message history is empty or when the clear button is clicked. Also, added a check for the presence of the "messages" key in the session state.
Removed redundant message check in 1_🗦_RAGbot.py to streamline code and improve readability. The "messages" key in session state was never used
@Daethyra Daethyra enabled auto-merge March 11, 2024 03:12
@Daethyra Daethyra changed the title 3.4.2 3.4.2 | bug fixes Mar 11, 2024
@Daethyra Daethyra merged commit ec04518 into streamlit Mar 11, 2024
2 checks passed
@Daethyra Daethyra added bug Something isn't working enhancement New feature or request labels Mar 11, 2024
@Daethyra Daethyra self-assigned this Mar 11, 2024
@Daethyra Daethyra deleted the 3.4.2 branch March 11, 2024 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant