Functions and procedures
ai.text.completion()Cypher 25FunctionIntroduced in 2025.11
Syntax |
|
||
Description |
Function to return generated text output based on the provided prompt. |
||
Input arguments |
Name |
Type |
Description |
|
|
Textual prompt. |
|
|
|
Name of the third party AI provider, see Generate text → Providers. |
|
|
|
Provider specific configuration, see Generate text → Providers. |
|
Returns |
Generated text based on the provided prompt. |
||
ai.text.completion.providers()Cypher 25ProcedureIntroduced in 2025.11
Syntax |
|
||
Description |
Returns text completion providers and their configuration options. |
||
Return arguments |
Name |
Type |
Description |
|
|
Provider name. |
|
|
|
The signature of the required configuration options. |
|
|
|
The signature of the optional configuration options. |
|
|
|
Default configuration option values. |
|
ai.text.embed()Cypher 25FunctionIntroduced in 2025.11
Syntax |
|
||
Description |
Encode a given resource as a vector using the named provider. |
||
Input arguments |
Name |
Type |
Description |
|
|
The object to transform into an embedding. |
|
|
|
The identifier of the provider: ("VertexAI", "OpenAI", "AzureOpenAI", "Bedrock-Titan"). |
|
|
|
The provider specific settings. |
|
Returns |
|
||
ai.text.embedBatch()Cypher 25ProcedureIntroduced in 2025.11
Syntax |
|
||
Description |
Encode a given resource as a vector using the named provider. |
||
Input arguments |
Name |
Type |
Description |
|
|
The object to transform into an embedding. |
|
|
|
The identifier of the provider: ("VertexAI", "OpenAI", "AzureOpenAI", "Bedrock-Titan"). |
|
|
|
The provider specific settings. |
|
Return arguments |
Name |
Type |
Description |
|
|
The index of the corresponding element in the input list. |
|
|
|
The given input resource. |
|
|
|
The generated vector embedding for the resource. |
|
ai.text.embed.providers()Cypher 25ProcedureIntroduced in 2025.11
Syntax |
|
||
Description |
Lists the available vector embedding providers. |
||
Return arguments |
Name |
Type |
Description |
|
|
The name of the GenAI provider. |
|
|
|
The signature of the required config map. |
|
|
|
The signature of the optional config map. |
|
|
|
The default values for the GenAI provider. |
|
genai.vector.encode()FunctionDeprecated in Cypher 25
Syntax |
|
||
Description |
Encode a given resource as a vector using the named provider. |
||
Input arguments |
Name |
Type |
Description |
|
|
The object to transform into an embedding. |
|
|
|
The identifier of the provider: ("VertexAI", "OpenAI", "AzureOpenAI", "Bedrock"). |
|
|
|
The provider specific settings. |
|
Returns |
|
||
genai.vector.encodeBatch()ProcedureDeprecated in Cypher 25
Syntax |
|
||
Description |
Encode a given batch of resources as vectors using the named provider. |
||
Input arguments |
Name |
Type |
Description |
|
|
The object to transform into an embedding. |
|
|
|
An optional list of selectors to filter out changes. |
|
|
|
The provider specific settings. |
|
Return arguments |
Name |
Type |
Description |
|
|
The index of the corresponding element in the input list. |
|
|
|
The given input resource. |
|
|
|
The generated vector embedding for the resource. |
|
genai.vector.listEncodingProviders()ProcedureDeprecated in Cypher 25
Syntax |
|
||
Description |
Lists the available vector embedding providers. |
||
Return arguments |
Name |
Type |
Description |
|
|
The name of the GenAI provider. |
|
|
|
The signature of the required config map. |
|
|
|
"The signature of the optional config map. |
|
|
|
The default values for the GenAI provider. |
|