Commit Graph

27 Commits

Author SHA1 Message Date
Marco Minerva 54b50e9759 Update MinimalHelpers.OpenApi to version 2.1.2
Upgraded the MinimalHelpers.OpenApi package from version 2.0.17 to 2.1.2 to incorporate the latest features and bug fixes.
2024-12-10 11:58:30 +01:00
Marco Minerva 62d596ea98 Refactor caching and OpenAPI integration
Updated Program.cs to replace Swagger with OpenApi and MemoryCache with HybridCache. Refactored ChatService.cs to use HybridCache asynchronously. Removed MessageLimit from AppSettings.cs and appsettings.json. Updated SqlDatabaseVectorSearch.csproj to include HybridCache package and update dependencies.
2024-12-10 11:53:58 +01:00
Marco Minerva 810b25c233 Update TinyHelpers.AspNetCore to version 4.0.5
Updated the TinyHelpers.AspNetCore package from version 4.0.4 to 4.0.5 to incorporate the latest fixes and improvements.
2024-12-04 15:35:36 +01:00
Marco Minerva f5d5fe151f Update TinyHelpers.AspNetCore package versions
Updated TinyHelpers.AspNetCore from 4.0.2 to 4.0.4 and
TinyHelpers.AspNetCore.Swashbuckle from 4.0.3 to 4.0.5 in
SqlDatabaseVectorSearch.csproj.
2024-12-04 10:59:56 +01:00
Marco Minerva a358567c0e Update package versions and add new package reference
Updated Microsoft.SemanticKernel from 1.30.0 to 1.31.0.
Updated Swashbuckle.AspNetCore from 7.0.0 to 7.1.0.
Updated TinyHelpers.AspNetCore from 3.1.19 to 4.0.2.
Added TinyHelpers.AspNetCore.Swashbuckle version 4.0.3.
2024-12-04 10:55:14 +01:00
Marco Minerva 9a7ea2f5b0 Update .editorconfig, VectorSearchService, and .csproj
- Updated .editorconfig with new C# style preferences.
- Modified using directives in VectorSearchService.cs.
- Changed tuple element order in VectorSearchService.cs foreach loop.
- Updated SqlDatabaseVectorSearch.csproj to target .NET 9.0.
- Updated package references and removed TinyHelpers package.

Update .editorconfig, fix VectorSearchService, upgrade packages

Updated .editorconfig with new C# style preferences. Removed `TinyHelpers.Extensions` using directive and corrected variable order in `VectorSearchService.cs`. Upgraded target framework to `net9.0` and updated several package references in `SqlDatabaseVectorSearch.csproj`.
2024-11-21 17:57:10 +01:00
Marco Minerva bcd085e49d Update README, adjust prompt formatting, add new package
Updated README.md to include a note on Vector support in Azure SQL Database/Managed Instance (EAP) and corrected "Dimension" to "Dimensions". Adjusted prompt formatting in ChatService.cs by replacing "---" with "=====" and improved text chunk appending. Added new package reference for `Microsoft.ML.Tokenizers.Data.Cl100kBase` in SqlDatabaseVectorSearch.csproj.
2024-11-07 10:03:58 +01:00
Marco Minerva 5b43031251 Add TokenizerService and update settings configuration
Updated Program.cs to use ConfigureAndGet method for settings,
changed ChatService to singleton, and added TokenizerService
singleton. Modified ChatService to use TokenizerService for
token counting. Updated AppSettings and AzureOpenAISettings
with new properties. Added new package references in
SqlDatabaseVectorSearch.csproj. Updated appsettings.json with
new properties. Added TokenizerService class for token counting.
2024-11-06 17:20:05 +01:00
Marco Minerva dc0b557010 Update Microsoft.SemanticKernel to v1.26.0
Upgraded the Microsoft.SemanticKernel package from version 1.25.0 to 1.26.0 to incorporate the latest features and bug fixes.
2024-11-05 17:07:15 +01:00
Marco Minerva 0435f042f1 Refactor to use EF Core for database operations
Refactored the codebase to replace raw SQL connections and Dapper with Entity Framework Core (EF Core). Modified `Program.cs` to configure EF Core services. Refactored `VectorSearchService` to use EF Core for all database operations. Updated project dependencies to remove Dapper and `Microsoft.Data.SqlClient`, and add EF Core packages. Added `ApplicationDbContext` for EF Core context and new `Document` and `DocumentChunk` classes for entity models.
2024-10-31 15:16:38 +01:00
Marco Minerva 1d8fa7db12 Update Microsoft.SemanticKernel to 1.25.0
Updated the Microsoft.SemanticKernel package version from 1.24.1 to 1.25.0 in the SqlDatabaseVectorSearch.csproj file.
2024-10-29 10:23:08 +01:00
Marco Minerva bc26c03629 Update package versions in SqlDatabaseVectorSearch.csproj
Updated Microsoft.SemanticKernel from 1.22.0 to 1.24.1.
Updated MinimalHelpers.OpenApi from 2.0.16 to 2.0.17.
These updates may include bug fixes, performance improvements,
or new features.
2024-10-22 10:30:52 +02:00
Marco Minerva 31b2a79b9f Update package dependencies in SqlDatabaseVectorSearch.csproj
Updated the following package dependencies:
- MinimalHelpers.OpenApi from 2.0.15 to 2.0.16
- Swashbuckle.AspNetCore from 6.8.1 to 6.9.0
- TinyHelpers.AspNetCore from 3.1.17 to 3.1.19
2024-10-15 14:53:41 +02:00
Marco Minerva 5c0cf1cbd0 Update dependencies and remove unused EF Core
Removed the Microsoft.EntityFrameworkCore namespace from Program.cs.
In SqlDatabaseVectorSearch.csproj:
- Removed EntityFrameworkCore.Exceptions.SqlServer package.
- Updated Microsoft.AspNetCore.OpenApi from 8.0.8 to 8.0.10.
- Updated Microsoft.SemanticKernel from 1.21.1 to 1.22.0.
- Updated TinyHelpers from 3.1.16 to 3.1.18.
2024-10-14 09:58:59 +02:00
Marco Minerva 8c1915f964 Update PdfPig package to version 0.1.9
The version of the PdfPig package has been updated from 0.1.8 to 0.1.9.
2024-10-08 09:53:53 +02:00
Marco Minerva 4355f72dab Refactor DB operations, rename tables, add Dapper
Refactored `VectorSearchService.cs` to use Dapper for DB operations, replacing raw ADO.NET commands. Updated methods for inserting, retrieving, and deleting documents and chunks. Modified vector search query to use Dapper's `QueryAsync`.

Updated `SqlDatabaseVectorSearch.csproj` to include Dapper package reference, version `2.1.35`.
2024-10-01 11:39:21 +02:00
Marco Minerva 3e95251485 Refactor to use the native VECTOR type 2024-09-30 17:08:28 +02:00
Marco Minerva 1ef2076ba6 Update package dependencies in SqlDatabaseVectorSearch.csproj
Updated the following package dependencies:
- Microsoft.SemanticKernel: 1.18.2 -> 1.21.1
- MinimalHelpers.OpenApi: 2.0.12 -> 2.0.15
- Swashbuckle.AspNetCore: 6.7.3 -> 6.8.1
- TinyHelpers.AspNetCore: 3.1.9 -> 3.1.17
2024-09-30 14:55:57 +02:00
Marco Minerva 6757631511 Update package dependencies in SqlDatabaseVectorSearch.csproj
Updated the following package dependencies:
- Microsoft.SemanticKernel from 1.17.2 to 1.18.2
- MinimalHelpers.OpenApi from 2.0.11 to 2.0.12
- TinyHelpers from 3.1.11 to 3.1.16
- TinyHelpers.AspNetCore from 3.1.8 to 3.1.9
2024-09-04 11:12:08 +02:00
Marco Minerva e4570008e0 Update package dependencies in SqlDatabaseVectorSearch.csproj
Updated the following package versions:
- EntityFrameworkCore.Exceptions.SqlServer: 8.1.2 -> 8.1.3
- Microsoft.AspNetCore.OpenApi: 8.0.7 -> 8.0.8
- Microsoft.EntityFrameworkCore.SqlServer: 8.0.7 -> 8.0.8
- Microsoft.SemanticKernel: 1.16.2 -> 1.17.2
- Swashbuckle.AspNetCore: 6.7.0 -> 6.7.3
2024-09-02 10:39:21 +02:00
Marco Minerva e54a091106 Update Swagger config and package versions
- Removed AddFormFile method from Swagger config in Program.cs
- Updated package versions in SqlDatabaseVectorSearch.csproj:
  - Microsoft.SemanticKernel to 1.16.2
  - MinimalHelpers.OpenApi to 2.0.11
  - Swashbuckle.AspNetCore to 6.7.0
  - TinyHelpers to 3.1.11
  - TinyHelpers.AspNetCore to 3.1.8
- Removed old package references from SqlDatabaseVectorSearch.csproj
2024-08-01 15:41:42 +02:00
Marco Minerva 0f7b0da0f0 Update Microsoft.SemanticKernel to 1.16.0
Updated the Microsoft.SemanticKernel package version from 1.15.1 to 1.16.0 in the SqlDatabaseVectorSearch.csproj file.
2024-07-17 15:06:44 +02:00
Marco Minerva ad6faee370 Update package versions for project dependencies
- Updated `Microsoft.AspNetCore.OpenApi` from `8.0.6` to `8.0.7`
- Updated `Microsoft.EntityFrameworkCore.SqlServer` from `8.0.6` to `8.0.7`
- Updated `Microsoft.SemanticKernel` from `1.15.0` to `1.15.1`
- Updated `TinyHelpers` from `3.1.7` to `3.1.10`
2024-07-10 10:44:25 +02:00
Marco Minerva 8ef8836075 Minor updates 2024-06-26 11:05:00 +02:00
Marco Minerva 7a97000c10 Update libraries 2024-06-24 09:45:05 +02:00
Marco Minerva db4646330f Enhanced app with Azure AI and vector search
- Modified `ApplicationDbContext.cs` to correct the `.IsVector()` method placement for `DocumentChunk`.
- Removed `MemoryResponse.cs` class, indicating a move away from this model.
- Enhanced `Program.cs` with Azure AI services integration for text embeddings and chat completions. Updated OpenAPI descriptions and reintroduced `/api/ask` with vector search.
- Adjusted `ChatService.cs` to improve question-asking functionality using document chunks.
- Updated `VectorSearchService.cs` with a new `AskQuestionAsync` method for advanced search and response capabilities. Made `GetContentAsync` static.
- Formatted `SqlDatabaseVectorSearch.csproj` and managed NuGet package inclusions.
- Simplified `appsettings.json` by removing unused keys.
- Added a new `Response` record class for standardized service responses.
2024-06-14 12:59:09 +02:00
Marco Minerva 9284ae5377 Initial commit 2024-06-14 11:47:00 +02:00