From 5ae999ecd66cd368238afe78ffd74dc2d6acd808 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 5 Dec 2025 14:04:28 +0800 Subject: [PATCH] fix: Rebuild embeddings search index to improve query performance --- migrations/versioned/000001_agent.up.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/versioned/000001_agent.up.sql b/migrations/versioned/000001_agent.up.sql index f5b9e736..4cbea2ef 100644 --- a/migrations/versioned/000001_agent.up.sql +++ b/migrations/versioned/000001_agent.up.sql @@ -454,6 +454,8 @@ CREATE INDEX IF NOT EXISTS idx_embeddings_knowledge_base_id COMMIT; +REINDEX INDEX embeddings_search_idx; + BEGIN; -- Add status field to track chunk processing state