Files
goclaw/migrations/000025_kg_entity_embeddings.down.sql
T
Tyler VoandClaude Opus 4.6 1015c9f73c feat: add pgvector semantic search to KG entities + team KG sharing
- Add embedding column to kg_entities with HNSW index
- Generate entity embeddings during IngestExtraction
- Hybrid search in SearchEntities (ILIKE 0.3 + vector 0.7)
- Add team_id scope for shared KG across team members
- Add IsSharedKG/WithSharedKG context helpers

Closes #327

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 13:34:58 +07:00

3 lines
97 B
SQL

DROP INDEX IF EXISTS idx_kg_entity_vec;
ALTER TABLE kg_entities DROP COLUMN IF EXISTS embedding;