USE GRAPH financialGraph CREATE OR REPLACE QUERY q1 (LIST query_vector) SYNTAX v3 { MapAccum @@distances; //find top-5 similar embeddings from Account's embedding attribute emb1, store the distance in @@distance v = vectorSearch({Account.emb1}, query_vector, 5, { distance_map: @@distances}); print v WITH VECTOR; //show the embeddings print @@distances; //show the distance map } #compile and install the query as a stored procedure install query q1 #run the query run query q1([-0.017733968794345856, -0.01019224338233471, -0.016571875661611557])