GenAI and GraphRAG

vector index

A structure over a vector property. The database searches it to find the vectors nearest a given one, rather than comparing every vector stored.

Example

Creating an index over the embedding property of every (:Movie) node in Neo4j.

cypher
CREATE VECTOR INDEX moviePlots IF NOT EXISTS
FOR (m:Movie)
ON m.embedding
OPTIONS { indexConfig: {
 `vector.dimensions`: 1536,
 `vector.similarity_function`: 'cosine'
}}

Lessons that use this term

The lesson and course links below open in a new tab.

No published lesson uses this term yet.

All glossary terms