Files
Enterprise-Knowledge-Base/migrations/versioned/000026_chunks_query_indexes.down.sql
T
wizardchen ac04a8efcb feat(agent): enhance chunk search functionality to include total chunk counts
- Updated the searchChunks method to calculate and include the total chunk count for each knowledge ID in the results.
- Introduced logic to fetch chunk counts based on unique knowledge IDs, improving the efficiency of data retrieval.
- Enhanced error handling for chunk count fetching, ensuring robust logging in case of failures.
2026-03-25 22:08:29 +08:00

5 lines
180 B
SQL

DO $$ BEGIN RAISE NOTICE '[Migration 000026] Dropping chunks query indexes'; END $$;
DROP INDEX IF EXISTS idx_chunks_kb_tenant;
DROP INDEX IF EXISTS idx_chunks_knowledge_enabled;