vector
An ordered list of numbers. Distance between two vectors measures how alike the things they represent are.
Also written: vectors
Example
Three words, each as a list of two numbers.
text
dog [0.9, 0.1]
puppy [0.8, 0.2]
carburettor [0.1, 0.9]Measured in a straight line, dog and puppy are 0.14 apart. Dog and carburettor are 1.13 apart.
A vector from an embedding model normally holds hundreds or thousands of numbers rather than two.
Distance can be measured in more than one way. Neo4j offers cosine and Euclidean, set on the vector index. The Graph Data Science library adds Pearson and a true Euclidean distance.
Vectors are often used to represent semantic meaning, but that is a convention, not a limitation.
Lessons that use this term
The lesson and course links below open in a new tab.
No published lesson uses this term yet.