@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
15 lines (14 loc) • 803 B
TypeScript
import { CypherFunction } from "../../expressions/functions/CypherFunctions";
import type { Expr } from "../../types";
/** Returns a FLOAT representing the similarity between the argument vectors based on their Euclidean distance.
* @see [Neo4j Documentation](https://neo4j.com/docs/cypher-manual/current/functions/vector/#functions-similarity-euclidean)
* @group Functions
* @since Neo4j 5.18
*/
export declare function euclidean(a: Expr, b: Expr): CypherFunction;
/** Returns a FLOAT representing the similarity between the argument vectors based on their cosine.
* @see [Neo4j Documentation](https://neo4j.com/docs/cypher-manual/current/functions/vector/#functions-similarity-cosine)
* @group Functions
* @since Neo4j 5.18
*/
export declare function cosine(a: Expr, b: Expr): CypherFunction;