Repository navigation
Conversation
…ment loading support
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces several improvements and refactorings across the backend, frontend, and Python runtime. The main highlights are the refactoring of document loading logic in the Python backend for better maintainability and extensibility, improvements to dataset file pagination and selection in the frontend, and minor enhancements to backend APIs and Docker configuration.
Python Backend: Document Loader Refactor
UniversalDocLoaderclass indocument_loaders.pyto centralize and simplify the logic for loading various document types (TXT, JSON, CSV, Markdown, Word, PDF), replacing the previous ad-hoc loader selection ingeneration_service.py. This makes it easier to add support for new formats and improves code maintainability. [1] [2] [3] [4]GenerationServiceto use the newload_documentsutility, and removed the now-unnecessary_build_loadermethod and related imports. [1] [2] [3] [4]Frontend: Dataset File Pagination and Selection
DatasetFileTransfer.tsxto improve page and pageSize handling, reset pagination when the dataset changes, and ensure correct file fetching and state updates. [1] [2] [3]Backend API: Dataset File Prefix Default
prefixparameter in thegetDatasetFilesAPI endpoint, ensuring consistent behavior when the parameter is not provided.Other Improvements
app/common/__init__.pyfor clarity.…ment loading support