mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
Update PK constraints, API description, and config comment
Updated primary key constraint names in Scripts.sql for Documents and DocumentChunks tables. Enhanced document upload API endpoint description in Program.cs to reflect the use of the new native Vector type for embeddings. Added a comment in appsettings.json to clarify the Dimensions setting in the Embedding section.
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ CREATE TABLE [dbo].[Documents](
|
||||
[Id] [uniqueidentifier] NOT NULL,
|
||||
[Name] [nvarchar](255) NOT NULL,
|
||||
[CreationDate] [datetimeoffset](7) NOT NULL,
|
||||
CONSTRAINT [PK_Documents2] PRIMARY KEY CLUSTERED
|
||||
CONSTRAINT [PK_Documents] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
))
|
||||
@@ -14,7 +14,7 @@ CREATE TABLE [dbo].[DocumentChunks](
|
||||
[Index] [int] NOT NULL,
|
||||
[Content] [nvarchar](max) NOT NULL,
|
||||
[Embedding] [vector](1536) NOT NULL,
|
||||
CONSTRAINT [PK_DocumentChunks2] PRIMARY KEY CLUSTERED
|
||||
CONSTRAINT [PK_DocumentChunks] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user