mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
fa81f01c27
Updated `DocxContentDecoder`, `PdfContentDecoder`, and `TextContentDecoder` to return `Task<IEnumerable<Chunk>>` instead of `Task<string>`, introducing a new `Chunk` record for structured output. Restructured the `ApplicationDbContext`, `Document`, and `DocumentChunk` classes by moving them to the `SqlDatabaseVectorSearch.Data` namespace for better organization. Updated database migration files to align with the new entity structure and modified references in `Program.cs`, `DocumentService.cs`, and `VectorSearchService.cs` to use the new namespace.
12 lines
286 B
C#
12 lines
286 B
C#
namespace SqlDatabaseVectorSearch.Data.Entities;
|
|
|
|
public class Document
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public required string Name { get; set; }
|
|
|
|
public DateTimeOffset CreationDate { get; set; }
|
|
|
|
public virtual ICollection<DocumentChunk> Chunks { get; set; } = [];
|
|
} |