@RickSalmon to provide more details.
At the lowest level (DQL) we are introducing:
- a predicate type
float32vector - a math function
dot - a query function
similar_to - an index type
hsnw.
With those new features, you can retrieve similar nodes, obtain their vector predicates, compute a distance or similarity score (dot, euclidean, or cosine). Using Dgraph variables you can order result by distance as you like.
In the GraphQL layer (coming soon), we get a step further and automatically generate query functions for similarity search returning distance out of the box. We will update the documentation accordingly.