Feature/refactor #1
Merged
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 significant enhancements to the
lambda_rag_litelibrary, focusing on modularization, centralized configurations, and improved functionality for document processing, chunking, and encoding detection. The most important changes include the addition of centralized configuration classes, modular architecture improvements, and new specialized detectors for encoding and file types.Modular Architecture Enhancements:
ChunkingConfig,TextProcessingConfig,LoaderConfig,EmbeddingConfig,VectorStoreConfig) to centralize settings and improve type safety. Includes presets for common use cases like small documents, academic papers, and code files. (lambda_rag_lite/config.py, lambda_rag_lite/config.pyR1-R235)EncodingDetector) and file type detection (FileTypeDetector) to handle specific tasks more effectively. (lambda_rag_lite/detectors/encoding.py, [1];lambda_rag_lite/detectors/__init__.py, [2]Code Quality and File Organization:
constants.pyfile to centralize file extensions, programming languages, and MIME type mappings, reducing duplication across modules. (lambda_rag_lite/constants.py, lambda_rag_lite/constants.pyR1-R197)__init__.py: Refactored imports inlambda_rag_lite/__init__.pyto include new classes and maintain backward compatibility with legacy APIs. (lambda_rag_lite/__init__.py, lambda_rag_lite/init.pyR10-R68)Configuration and Quality Tooling:
.qltyconfiguration files (qlty.toml,.yamllint.yaml) and updated.gitignoreto integrate code quality tools likeyamllint,ruff, andmarkdownlint. (.qlty/configs/.yamllint.yaml, [1];.qlty/qlty.toml, [2];.qlty/.gitignore, [3]Documentation and Versioning:
CHANGELOG.mdfor version0.2.0, including migration guides and directory structure changes. (CHANGELOG.md, CHANGELOG.mdR8-R125)