core/scripts/check-index-dimensions.cypher
Elias Stepanik 164e5a2f1d feat: add BullMQ space assignment, replace GDS cosine similarity, and make Trigger optional
- Implement space assignment queue and worker for BullMQ
- Add native Cypher cosine similarity function to replace GDS dependency
- Make Trigger.dev environment variables optional (only required when QUEUE_PROVIDER=trigger)
- Add EMBEDDING_MODEL_SIZE configuration for vector index management
- Update vector search queries to use native Neo4j vector search with score
- Add Neo4j utility scripts for index management and troubleshooting
- Update documentation with embedding model configuration and vector index recreation steps
2025-10-24 20:38:52 +00:00

20 lines
527 B
Plaintext

// Check vector index configuration including dimensions
SHOW INDEXES
YIELD name, type, labelsOrTypes, properties, options
WHERE type = 'VECTOR'
RETURN
name,
type,
labelsOrTypes,
properties,
options.indexConfig AS indexConfig;
// Specifically check the dimensions
SHOW INDEXES
YIELD name, options
WHERE name IN ['entity_embedding', 'statement_embedding', 'episode_embedding']
RETURN
name,
options.indexConfig['vector.dimensions'] AS dimensions,
options.indexConfig['vector.similarity_function'] AS similarity;