@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
15 lines (14 loc) • 1.07 kB
TypeScript
import type { Literal, Param } from "../../Cypher";
import { CypherFunction } from "../../expressions/functions/CypherFunctions";
import { CypherProcedure } from "../../procedures/CypherProcedure";
import type { Expr } from "../../types";
/** Encode a given resource as a vector using the named provider.
* @see [Neo4j Documentation](https://neo4j.com/docs/cypher-manual/current/functions/#header-query-functions-genai)
* @group Functions
*/
export declare function encode(resource: Expr, provider: string | Literal<string> | Param, configuration: Record<string, string | number | Literal | Param>): CypherFunction;
/** Encode a given batch of resources as vectors using the named provider.
* @see [Neo4j Documentation](https://neo4j.com/docs/operations-manual/current/reference/procedures/#procedure_genai_vector_encodeBatch)
* @group Procedures
*/
export declare function encodeBatch(resources: Expr, provider: string | Literal<string> | Param, configuration: Record<string, string | number | Literal | Param>): CypherProcedure<"index" | "resource" | "vector">;