Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* API CRUD Refactoring * Backend API Refactoring * Adding vectorStoreClass and embeddingModelClass to SiloEntity * Begin of Scheduling Configuration * Fix checkstyle fail * Removing AsyncConfig and SchedulingConfig in order to replace them with JobRunr * Init JobRunr * Updating default port of JobRunr from 8000 to 1984 * refactor: Rename SecurityConfiguration to SecurityConfig on-behalf-of: @dRAGon-Okinawa [email protected]" * chore: Update OpenAPI mappings to use single quotes instead of double quotes on-behalf-of: @org [email protected] * chore: Disable JobRunr background job server, job scheduler, and dashboard for Profile("test") This commit disables the JobRunr background job server, job scheduler, and dashboard by setting the corresponding properties to false in the application-test.yaml file. This change is necessary to prevent unnecessary resource usage during testing. Note: This commit message follows the established convention of using the "chore" type for non-functional changes. * refactor: Update ProviderType enum values and add fromString method This commit updates the ProviderType enum in the `ProviderType.java` file. It adds two new enum values, `ONNX` and `OpenAI`, and modifies the existing `OPENAI` value to `OpenAI`. Additionally, a new static method `fromString` is added to the enum to retrieve the corresponding ProviderType based on a given string value. Note: This commit message follows the established convention of using the "refactor" type for code restructuring or refactoring. * refactor: Add unique index for name field in IngestorEntity and ProviderEntity This commit adds a unique index for the `name` field in both the `IngestorEntity` and `ProviderEntity` classes. The unique index ensures that the `name` field values are unique within their respective collections. Note: This commit message follows the established convention of using the "refactor" type for code restructuring or refactoring. * feat: Add create method with beforeSaveCallback to AbstractCrudBackendApiController This commit adds a new overloaded `create` method to the `AbstractCrudBackendApiController` class. The new method accepts an additional parameter `beforeSaveCallback`, which is a function that can be used to modify the entity before saving it to the repository. This allows for more flexibility in customizing the creation process of entities. Note: This commit message follows the established convention of using the "feat" type for new feature additions. * feat: Handle unique key constraint violation in AbstractCrudBackendApiController This commit modifies the `AbstractCrudBackendApiController` class to handle unique key constraint violations when saving entities to the repository. It adds a try-catch block around the `repository.save(entity)` method and throws a `ResponseStatusException` with a `CONFLICT` status and a descriptive error message when a `UniqueConstraintException` is caught. Note: This commit message follows the established convention of using the "feat" type for new feature additions. * Fix checkstyleMain + checkstyleTest * feat: Update dRAGon description to mention RAG pipeline This commit updates the dRAGon description in the `HomepageFeatures` component to mention the RAG pipeline instead of just "your docs". This change provides more clarity and aligns with the actual functionality of the software. * refactor: Update primary color variables in custom.css This commit updates the primary color variables in the custom.css file. The new color values are #8b5cf6 for the primary color, #743cf4 for the dark shade, #692cf3 for the darker shade, #4d0ce0 for the darkest shade, #a27cf8 for the light shade, #ad8cf9 for the lighter shade, and #cfbcfb for the lightest shade. This change ensures consistency and aligns with the desired color scheme. * refactor: Update ProviderEntity settings field description * refactor: Update SiloEntity vectorStoreClass field to vectorStoreType This commit updates the `SiloEntity` class by renaming the `vectorStoreClass` field to `vectorStoreType`. This change provides a more accurate and descriptive name for the field, improving code readability and maintainability. * refactor: Update EmbeddingModelType enum with dimensions and maxTokens This commit updates the `EmbeddingModelType` enum in the `EmbeddingModelType.java` file. It adds the `dimensions` and `maxTokens` fields to the `EmbeddingModelDefinition` class, allowing for more flexibility in defining the dimensions and maximum tokens for each embedding model. This change enhances the configurability of the embedding models and improves the overall functionality of the application. * refactor: Add IngestorEntity settings field for key-value pairs This commit adds a new field `settings` to the `IngestorEntity` class. The `settings` field is a map of key-value pairs and allows for linking additional settings to the Ingestor. This change enhances the flexibility and configurability of the IngestorEntity. * refactor: Rename SiloEntity vectorStoreClass field to vectorStoreType * Fix checkstyleMain * refactor: Update AbstractCrudBackendApiController to use ObjectMapper for field updates This commit refactors the `AbstractCrudBackendApiController` class to use the `ObjectMapper` from the Jackson library for updating entity fields. Instead of manually iterating over the fields and using reflection to set the values, the code now serializes the `fields` map to JSON using the `ObjectMapper`, and then uses the `ObjectReader` to update the entity fields. This change improves code readability and maintainability by leveraging the built-in functionality of the `ObjectMapper` and reduces the risk of errors when updating fields. * refactor: Add ingestors field to SiloEntity This commit adds a new field `ingestors` to the `SiloEntity` class. The `ingestors` field is a list of Ingestor UUIDs that are linked to the Silo. When linked, the Ingestors will be run in order to add documents into the Silo. This change enhances the functionality of the SiloEntity by allowing it to manage and track the associated Ingestors. * refactor: Add showAppURLs and configureJobs methods to StartupApplicationListener * Begin JobRunr Ingestor Job * refactor: Remove @Profile("!test") annotation from JobRunrConfig The @Profile("!test") annotation was removed from the JobRunrConfig class. This change ensures that the configuration is applied regardless of the active profile, improving consistency and eliminating potential issues related to test environments.
- Loading branch information