embedding
Information represented as a numerical vector, positioned so that similar information sits close together.
Also written: embeddings
Example
A film's title and plot, stored a second time as numbers.
cypher
MATCH (m:Movie {title:'Godfather, The'})
WHERE m.plot IS NOT NULL AND m.title IS NOT NULL
WITH m, m.title + ' ' + m.plot AS titleAndPlot
WITH m, ai.text.embed(titleAndPlot, 'OpenAI', { token: $openaiToken, model: 'text-embedding-3-small' }) AS vector
CALL db.create.setNodeVectorProperty(m, 'embedding', toFloatList(vector))
RETURN m.embedding AS embeddingm.embedding holds the embedding.
Lessons that use this term
The lesson and course links below open in a new tab.
No published lesson uses this term yet.