improvement(chunk-config): migrate unused default for consistency (#913)

This commit is contained in:
Vikhyath Mondreti
2025-08-08 12:46:30 -07:00
committed by GitHub
parent 0ec91f9010
commit 061bd6d5a8
4 changed files with 5872 additions and 1 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "knowledge_base" ALTER COLUMN "chunking_config" SET DEFAULT '{"maxSize": 1024, "minSize": 1, "overlap": 200}';

File diff suppressed because it is too large Load Diff

View File

@@ -484,6 +484,13 @@
"when": 1754603754177,
"tag": "0069_lonely_spirit",
"breakpoints": true
},
{
"idx": 70,
"version": "7",
"when": 1754682155062,
"tag": "0070_charming_wrecking_crew",
"breakpoints": true
}
]
}

View File

@@ -719,7 +719,7 @@ export const knowledgeBase = pgTable(
// Chunking configuration stored as JSON for flexibility
chunkingConfig: json('chunking_config')
.notNull()
.default('{"maxSize": 1024, "minSize": 100, "overlap": 200}'),
.default('{"maxSize": 1024, "minSize": 1, "overlap": 200}'),
// Soft delete support
deletedAt: timestamp('deleted_at'),