From 549cf7c0053bb4f4c3c4e08d588b1f0c69297daf Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Sat, 22 Aug 2026 13:20:35 +0100 Subject: [PATCH] fix: skip pgvector table check when enabling AI search on turbopuffer (#2416) --- apps/server/src/core/workspace/services/workspace.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/core/workspace/services/workspace.service.ts b/apps/server/src/core/workspace/services/workspace.service.ts index 77ccb90c9..68dfd271a 100644 --- a/apps/server/src/core/workspace/services/workspace.service.ts +++ b/apps/server/src/core/workspace/services/workspace.service.ts @@ -396,7 +396,10 @@ export class WorkspaceService { } } - if (updateWorkspaceDto.aiSearch) { + if ( + updateWorkspaceDto.aiSearch && + this.environmentService.getAiVectorDriver() !== 'turbopuffer' + ) { const tableExists = await isPageEmbeddingsTableExists(this.db); if (!tableExists) { throw new BadRequestException(