Skip to main content
Guide
Vector indexes rank node or edge embeddings by distance. Every definition requires a non-zero dimension and a distance metric.

Supported metrics

  • Cosine
  • Euclidean
  • Manhattan
The indexed value and every query vector must have exactly the declared dimension.

Create a vector index

Pass a tenant property as the final argument to partition the index. Start with the SDK’s vector-search operation for label Doc, property embedding, a query vector, and a result limit of 10. $distance is available on the hit stream; project it before traversing away from the hit if it must remain in the response.

Operational notes

  • Creation returns before the backfill necessarily finishes.
  • Malformed source vectors can block the operation.
  • A new generation remains hidden until validation and activation succeed.
  • Dropping an index is also a durable lifecycle operation.

Next steps

Project search results

Preserve ranked hit metadata before continuing a traversal.

Vector prefiltering

Rank only an exact traversal-defined candidate set.

Troubleshoot index operations

Resolve blocked builds and lifecycle errors.