Commit Graph

100 Commits

Author SHA1 Message Date
Marco Minerva bef955831d Update package versions for FluentValidation and SemanticKernel
Updated the `FluentValidation.DependencyInjectionExtensions` package
from version 12.0.0 to 12.1.0 to incorporate potential bug fixes
and improvements.

Updated the `Microsoft.SemanticKernel` package from version 1.66.0
to 1.67.0, which may include enhancements, bug fixes, or new
functionality.
2025-11-04 09:57:03 +01:00
Marco Minerva b4e47ef552 Update Microsoft.ML.Tokenizers to version 1.0.3
Updated the `<PackageReference>` for `Microsoft.ML.Tokenizers` and its related data packages (`Data.Cl100kBase` and `Data.O200kBase`) from version `1.0.2` to `1.0.3`. These updates may include bug fixes, performance improvements, or new features introduced in the latest version.
2025-10-31 17:37:56 +01:00
Marco Minerva f0873bc9bf Update package dependencies to latest versions
Updated several package dependencies in the SqlDatabaseVectorSearch.csproj file to their latest versions:
- Microsoft.AspNetCore.OpenApi, Microsoft.EntityFrameworkCore.SqlServer, and Microsoft.EntityFrameworkCore.Tools to 10.0.0-rc.2.25502.107
- Microsoft.Extensions.Caching.Hybrid and Microsoft.Extensions.Http.Resilience to 9.10.0
- Microsoft.SemanticKernel to 1.66.0
- TinyHelpers.AspNetCore to 4.1.8

These updates may include bug fixes, performance improvements, or new features.
2025-10-15 11:33:14 +02:00
Marco Minerva 85ffe575ca Merge branch 'master' into net10 2025-10-06 11:36:05 +02:00
Marco Minerva 9a31ad1400 Update SwaggerUI package to version 9.0.6
Upgraded the `Swashbuckle.AspNetCore.SwaggerUI` package in the `SqlDatabaseVectorSearch.csproj` file from version 9.0.5 to 9.0.6. This minor version update likely includes bug fixes, enhancements, or other improvements while maintaining backward compatibility.
2025-10-06 11:35:15 +02:00
Marco Minerva d730b1f760 Update Swashbuckle.AspNetCore.SwaggerUI to v9.0.5
Upgraded the `Swashbuckle.AspNetCore.SwaggerUI` package in the
`SqlDatabaseVectorSearch.csproj` file from version 9.0.4 to 9.0.5.
This update may include bug fixes, new features, or other
improvements provided in the latest version.
2025-09-30 10:49:49 +02:00
Marco Minerva a80e132f8f Update Microsoft.SemanticKernel to version 1.65.0
Upgraded the `Microsoft.SemanticKernel` package reference in
`SqlDatabaseVectorSearch.csproj` from version 1.64.0 to 1.65.0.
This update may include new features, bug fixes, or performance
improvements.
2025-09-11 09:25:32 +02:00
Marco Minerva d4753ca665 Update Microsoft.SemanticKernel to version 1.65.0
Upgraded the `Microsoft.SemanticKernel` package reference in
`SqlDatabaseVectorSearch.csproj` from version 1.64.0 to 1.65.0.
This update may include bug fixes, new features, or performance
improvements introduced in the newer version.
2025-09-11 09:24:52 +02:00
Marco Minerva 404cd7565a Switch to SqlVector<float> for embeddings
Updated the application to use SQL Server's native vector data type (`SqlVector<float>`) for embeddings, replacing the previous `float[]` or `string` representations.

- Updated `.editorconfig` with new code style preferences and diagnostic rule severities.
- Modified `DocumentChunk.cs` to use `SqlVector<float>` for the `Embedding` property.
- Updated migrations and `ApplicationDbContextModelSnapshot` to reflect the new `SqlVector<float>` type.
- Replaced `AddAzureSql` with `AddSqlServer` in `Program.cs` and removed `UseVectorSearch`.
- Adjusted `DocumentService` and `VectorSearchService` to handle `SqlVector<float>` and updated vector search logic.
- Removed the `EFCore.SqlServer.VectorSearch` package and upgraded EF Core to `10.0.0-rc.1`.
- Made minor adjustments to OpenAPI configuration and dependency management.
2025-09-10 16:45:16 +02:00
Marco Minerva f5011bc44b Upgrade to .NET 10.0 and update NuGet dependencies
Updated the project to target .NET 10.0, replacing the previous .NET 9.0 target framework. Upgraded several NuGet packages to their latest pre-release versions:
- `Microsoft.AspNetCore.OpenApi` to `10.0.0-rc.1.25451.107`
- `Microsoft.EntityFrameworkCore.SqlServer` to `10.0.0-rc.1.25451.107`
- `Microsoft.EntityFrameworkCore.Tools` to `10.0.0-rc.1.25451.107`

Retained `<PrivateAssets>` and `<IncludeAssets>` settings for `Microsoft.EntityFrameworkCore.Tools`. These changes ensure compatibility with the updated framework and leverage new features and improvements.
2025-09-10 16:05:10 +02:00
Marco Minerva e0220da84e Update NuGet package versions to latest releases
Updated the following NuGet packages to their latest versions:
- `Microsoft.AspNetCore.OpenApi` to `9.0.9`
- `Microsoft.EntityFrameworkCore.SqlServer` to `9.0.9`
- `Microsoft.EntityFrameworkCore.Tools` to `9.0.9`
- `Microsoft.Extensions.Caching.Hybrid` to `9.9.0`
- `Microsoft.Extensions.Http.Resilience` to `9.9.0`
- `TinyHelpers.AspNetCore` to `4.1.6`
2025-09-10 16:02:10 +02:00
Marco Minerva ed90a22888 Update copilot instructions and package version
Updated EFCore.SqlServer.VectorSearch package version from 9.0.0-preview.2 to 9.0.0 for stability.
2025-09-08 12:57:16 +02:00
Marco Minerva 98c18139f4 Update documentation and package versions
- Clarified test practices in `copilot-instructions.md`.
- Revised Azure rules for best practices and tool usage.
- Added instruction in `ChatService.cs` for asking clarifying questions.
- Updated package versions in `SqlDatabaseVectorSearch.csproj` for several dependencies.
2025-09-01 11:58:11 +02:00
Marco Minerva 261853e4a7 Fix typos and update dependencies and configurations
Updated the version of
`TinyHelpers.AspNetCore` in `SqlDatabaseVectorSearch.csproj`
from `4.1.2` to `4.1.3`. Clarified comments in
`appsettings.json` for the `ModelId` field under
`ChatCompletion` to specify requirements for `gpt-4.1` models.
2025-08-01 16:11:06 +02:00
Marco Minerva 0ba84a35ba Update package versions for dependencies
Updated the following packages:
- `MinimalHelpers.Routing.Analyzers` to version `1.2.2`
- `PdfPig` to version `0.1.11`
- `TinyHelpers.AspNetCore` to version `4.1.2`
2025-07-28 12:41:46 +02:00
Marco Minerva b20491f247 Refactor solution structure and update package version
Updated the Visual Studio solution file to remove obsolete project configuration lines, indicating a cleanup.
The `Microsoft.SemanticKernel` package version has been upgraded from `1.60.0` to `1.61.0`.
Introduced a new solution file format (`SqlDatabaseVectorSearch.slnx`) to better organize solution items in a structured XML format.
2025-07-25 12:24:05 +02:00
Marco Minerva 1065dbbf83 Update package references in SqlDatabaseVectorSearch
Updated several package references in the `SqlDatabaseVectorSearch.csproj` file to newer versions, including:
- `Microsoft.AspNetCore.OpenApi` to `9.0.7`
- `Microsoft.EntityFrameworkCore.SqlServer` to `9.0.7`
- `Microsoft.EntityFrameworkCore.Tools` to `9.0.7`
- `Microsoft.Extensions.Caching.Hybrid` to `9.7.0`
- `Microsoft.Extensions.Http.Resilience` to `9.7.0`
- `Microsoft.SemanticKernel` to `1.60.0`
- `MinimalHelpers.FluentValidation` to `1.1.4`
- `Swashbuckle.AspNetCore.SwaggerUI` to `9.0.3`
2025-07-10 10:15:57 +02:00
Marco Minerva 0a2aaa9e6e Update package versions in SqlDatabaseVectorSearch.csproj
- Updated `Blazor.Bootstrap` from `3.3.1` to `3.4.0`.
- Updated `Microsoft.SemanticKernel` from `1.58.0` to `1.59.0`.
2025-07-02 10:11:29 +02:00
Marco Minerva b473511fb6 Update Microsoft.SemanticKernel to version 1.58.0
Updated the `Microsoft.SemanticKernel` package from version 1.57.0 to 1.58.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-06-26 09:45:26 +02:00
Marco Minerva c6ad2ca3ea Update package versions for dependencies
- Updated `Microsoft.SemanticKernel` to version `1.57.0`.
- Updated `Swashbuckle.AspNetCore.SwaggerUI` to version `9.0.1`.
- Updated `TinyHelpers.AspNetCore` to version `4.0.29`.
2025-06-19 09:27:24 +02:00
Marco Minerva cdbe2e3a91 Enhance content decoders and update dependencies
- Modified `DocxContentDecoder` to use `IServiceProvider` for text chunking and improved paragraph processing with page break handling.
- Updated `PdfContentDecoder` and `TextContentDecoder` to trim whitespace from text before splitting into paragraphs.
- Reordered service registrations in `Program.cs` while retaining existing functionality.
- Updated `SqlDatabaseVectorSearch.csproj` with new package versions for several dependencies, including `Microsoft.AspNetCore.OpenApi` and `Microsoft.EntityFrameworkCore`.
2025-06-11 17:20:56 +02:00
Marco Minerva 12e8a042db Update Microsoft.SemanticKernel to version 1.55.0
Updated the `Microsoft.SemanticKernel` package version from `1.54.0` to `1.55.0` in the `SqlDatabaseVectorSearch.csproj` file.
2025-06-04 10:08:21 +02:00
Marco Minerva c0051dbeb7 Update Swashbuckle.AspNetCore.SwaggerUI version
Updated the `Swashbuckle.AspNetCore.SwaggerUI` package from version `8.1.2` to `8.1.3` in the `SqlDatabaseVectorSearch.csproj` file.
2025-06-03 11:28:32 +02:00
Marco Minerva 599cc84928 Update Swashbuckle.AspNetCore.SwaggerUI version
Updated the `Swashbuckle.AspNetCore.SwaggerUI` package from version `8.1.1` to `8.1.2` in the `SqlDatabaseVectorSearch.csproj` file.
2025-05-26 10:32:49 +02:00
Marco Minerva 505b74ad63 Update Microsoft.SemanticKernel to version 1.54.0
Updated the `Microsoft.SemanticKernel` package from version
1.53.1 to 1.54.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-05-23 10:08:16 +02:00
Marco Minerva db0ec7cec6 Enhance copy confirmation in Ask.razor and update package
Updated the copy confirmation feature in `Ask.razor` by replacing the `isCopied` variable with `showCopyConfirmation`, improving user feedback with a longer display duration for the checkmark icon.

Also, updated the `Microsoft.SemanticKernel` package version from `1.52.1` to `1.53.1` for potential bug fixes and improvements.
2025-05-22 09:36:09 +02:00
Marco Minerva 72ce93c563 Update Microsoft.SemanticKernel to version 1.52.1
Updated the `Microsoft.SemanticKernel` package from version
1.51.0 to 1.52.1 in the `SqlDatabaseVectorSearch.csproj` file.
2025-05-20 10:36:41 +02:00
Marco Minerva 2d979fd8f0 Update Azure OpenAI services and Semantic Kernel version
- Updated `VectorSearchService.cs` to replace the text embedding generation service with an embedding generator and adjusted embedding generation and vector search logic.
- Changed `Microsoft.SemanticKernel` package version from 1.50.0 to 1.51.0 in `SqlDatabaseVectorSearch.csproj` and modified `NoWarn` property settings.
2025-05-16 17:42:38 +02:00
Marco Minerva 2a511a8836 Update Microsoft.SemanticKernel to version 1.50.0
Updated the `Microsoft.SemanticKernel` package version from `1.49.0` to `1.50.0` in the `SqlDatabaseVectorSearch.csproj` file.
2025-05-15 11:46:32 +02:00
Marco Minerva aabedf049e Update NuGet package references in project file
Updated several NuGet package versions in `SqlDatabaseVectorSearch.csproj` to improve functionality and compatibility. Key upgrades include:
- `Microsoft.AspNetCore.OpenApi` to version `9.0.5`
- `Microsoft.EntityFrameworkCore.SqlServer` to version `9.0.5`
- `Microsoft.EntityFrameworkCore.Tools` to version `9.0.5`
- `Microsoft.Extensions.Caching.Hybrid` to version `9.5.0`
- `Microsoft.Extensions.Http.Resilience` to version `9.5.0`
- `TinyHelpers.AspNetCore` to version `4.0.26`
2025-05-14 10:47:28 +02:00
Marco Minerva f0e07fc96b Update Microsoft.SemanticKernel to version 1.49.0
Updated the `Microsoft.SemanticKernel` package version from `1.48.0` to `1.49.0` in the `SqlDatabaseVectorSearch.csproj` file.
2025-05-12 10:32:21 +02:00
Marco Minerva 32fce98b63 Add FluentValidation for Question model validation
- Updated `AskEndpoints.cs` to include `MinimalHelpers.FluentValidation` and standardize endpoint descriptions.
- Integrated FluentValidation in `Program.cs` and registered validators.
- Modified `SqlDatabaseVectorSearch.csproj` to add necessary package references for FluentValidation.
- Created `QuestionValidator` class to enforce validation rules on the `Question` model.
2025-05-05 15:06:22 +02:00
Marco Minerva a2ae9c05af Update Microsoft.SemanticKernel to version 1.48.0
Updated the `Microsoft.SemanticKernel` package version from 1.47.0 to 1.48.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-04-30 10:32:12 +02:00
Marco Minerva 711d4a314f Enhance chat responses and update package versions
Updated `ChatService.cs` to improve user guidance for unavailable information responses. Added multiple phrases to ensure clarity and context relevance.

Modified `SqlDatabaseVectorSearch.csproj` to upgrade `Microsoft.SemanticKernel` from `1.45.0` to `1.47.0`, and incremented versions for `Swashbuckle.AspNetCore.SwaggerUI` and `TinyHelpers.AspNetCore` to `8.1.1` and `4.0.25`, respectively, for bug fixes and improvements.
2025-04-22 11:19:32 +02:00
Marco Minerva d8e699730d Update package references in SqlDatabaseVectorSearch
Updated versions of several package references in the
`SqlDatabaseVectorSearch.csproj` file, including:
- `Microsoft.AspNetCore.OpenApi`, `Microsoft.EntityFrameworkCore.SqlServer`,
  and `Microsoft.EntityFrameworkCore.Tools` from `9.0.3` to `9.0.4`.
- `Microsoft.Extensions.Caching.Hybrid` and
  `Microsoft.Extensions.Http.Resilience` from `9.3.0` to `9.4.0`.
- `TinyHelpers.AspNetCore` from `4.0.22` to `4.0.23`.

These updates aim to incorporate bug fixes, new features,
and improvements from the latest versions.
2025-04-09 11:09:05 +02:00
Marco Minerva 467115f1a5 Update Microsoft.SemanticKernel to version 1.45.0
Updated the `Microsoft.SemanticKernel` package version from `1.44.0` to `1.45.0` in the `SqlDatabaseVectorSearch.csproj` file.
2025-04-04 11:55:02 +02:00
Marco Minerva cb0e534d17 Update package versions for SwaggerUI and TinyHelpers
Updated `Swashbuckle.AspNetCore.SwaggerUI` from `8.0.0` to `8.1.0` and `TinyHelpers.AspNetCore` from `4.0.21` to `4.0.22`. Removed previous versions in favor of the latest updates.
2025-04-01 12:49:20 +02:00
Marco Minerva b45af8dd9c Update Microsoft.SemanticKernel to version 1.44.0
Updated the `Microsoft.SemanticKernel` package version from
1.43.0 to 1.44.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-03-27 09:12:08 +01:00
Marco Minerva 5d4ef9dcf3 Update Microsoft.SemanticKernel to version 1.43.0
Updated the `Microsoft.SemanticKernel` package from version 1.42.0 to 1.43.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-03-25 10:08:16 +01:00
Marco Minerva a0d1126d15 Enhance file upload and notification features
- Updated `Documents.razor` to change form submission handler to `UploadFile` and added `id` to `InputFile`.
- Implemented `UploadFile` method to handle file uploads and reset input after successful upload.
- Upgraded package references in `SqlDatabaseVectorSearch.csproj` for `Microsoft.SemanticKernel` and `Swashbuckle.AspNetCore.SwaggerUI`.
- Introduced `resetFileInput` function in `functions.js` to clear file input selections.
2025-03-19 10:38:42 +01:00
Marco Minerva d20b1395e0 Update package references in project file
Incremented versions for several packages in `SqlDatabaseVectorSearch.csproj`, including:
- `Microsoft.AspNetCore.OpenApi` to `9.0.3`
- `Microsoft.EntityFrameworkCore.SqlServer` to `9.0.3`
- `Microsoft.EntityFrameworkCore.Tools` to `9.0.3`
- `Microsoft.Extensions.Caching.Hybrid` to `9.3.0` (removed preview version)
- `Microsoft.Extensions.Http.Resilience` to `9.3.0`
- `Microsoft.SemanticKernel` to `1.41.0`
- `TinyHelpers.AspNetCore` to `4.0.21`
2025-03-12 11:16:35 +01:00
Marco Minerva 7fab00037a Update package versions for DocumentFormat and PdfPig
Updated the `DocumentFormat.OpenXml` package from `3.2.0` to `3.3.0` and the `PdfPig` package from `0.1.9` to `0.1.10`.
2025-03-11 17:37:31 +01:00
Marco Minerva 90b69f05d8 Refactor endpoint definitions and update dependencies
- Separated endpoint definitions into `AskEndpoints` and `DocumentEndpoints` classes for better organization and maintainability.
- Removed inline endpoint definitions in `Program.cs` and replaced with `app.MapEndpoints();`.
- Updated `Microsoft.SemanticKernel` package from version `1.40.0` to `1.40.1`.
- Replaced `MinimalHelpers.OpenApi` with `MinimalHelpers.Routing.Analyzers` in project dependencies.
- Defined new POST endpoints for asking questions and document management with detailed API documentation.
- Enhanced code structure for easier management and future extensibility.
2025-03-04 10:46:35 +01:00
Marco Minerva c662d34a2a Refactor Ask.razor and update dependencies
- Renamed `CopyToClipboard` to `CopyToClipboardAsync` in `Ask.razor` for clarity on asynchronous operation.
- Added `ElementReference` for `chat` and introduced `EnsureMessageIsVisibleAsync` to improve message visibility.
- Modified streaming state handling for better readability.
- Made `FormatTokenUsage` and `FormatTokenUsageDetails` methods static and adjusted their implementations.
- Enhanced styling in `Home.razor` with a new paragraph class.
- Updated `SqlDatabaseVectorSearch.csproj` to upgrade `Microsoft.SemanticKernel` and other package versions.
- Added a new `scrollTo` function in `functions.js` to improve user experience by ensuring elements are visible.
2025-02-28 11:24:57 +01:00
Marco Minerva 9d2c4e2e0c Update Swashbuckle.AspNetCore.SwaggerUI version
Updated the `Swashbuckle.AspNetCore.SwaggerUI` package from version `7.2.0` to `7.3.0` in the `SqlDatabaseVectorSearch.csproj` file.
2025-02-26 16:09:04 +01:00
Marco Minerva ec5bf2acb2 Update Home.razor and project dependencies
Refactor Home.razor to replace markdown loading with static HTML content for the SQL Database Vector Search application, including a main heading and feature list. Remove the IWebHostEnvironment dependency.

Upgrade package references in SqlDatabaseVectorSearch.csproj for Microsoft.ML.Tokenizers and Microsoft.SemanticKernel.

Revise docs.md to focus on supported features instead of setup instructions.

Add new SVG files (openai.svg and sqldatabase.svg) for application icons.
2025-02-26 10:36:50 +01:00
Marco Minerva a0a6df9cb3 Add loading state and database migration support
- Updated `Documents.razor` to show a loading spinner when documents are being fetched, introducing an `isLoading` state variable.
- Added `ConfigureDatabaseAsync` method in `Program.cs` for handling database migrations at startup.
- Modified `SqlDatabaseVectorSearch.csproj` to include `Microsoft.EntityFrameworkCore.Tools` for migration management.
- Enhanced documentation in `docs.md` regarding the `Dimensions` property and `VECTOR` column size requirements.
- Created initial migration files to define the database schema for `Documents` and `DocumentChunks` tables.
- Defined `Document` and `DocumentChunk` entities in migration files for data storage and retrieval.
2025-02-24 12:01:22 +01:00
Marco Minerva 08ebc517c8 Refactor navigation and update styles and dependencies
- Rearranged navigation items in `MainLayout.razor`.
- Removed `ToastService` injection and modified key handling in `Ask.razor`.
- Downgraded `Microsoft.SemanticKernel` version in project file.
- Updated CSS styles for sidebar brand icon and navigation item states.
- Fixed error message content in `.blazor-error-boundary` class.
2025-02-21 14:13:25 +01:00
Marco Minerva ae88408823 Merge branch 'master' into ui 2025-02-21 12:19:05 +01:00
Marco Minerva 486d73d662 Update Microsoft.SemanticKernel to version 1.38.0
Updated the `Microsoft.SemanticKernel` package version from
1.37.0 to 1.38.0 in the `SqlDatabaseVectorSearch.csproj` file.
2025-02-21 11:05:39 +01:00