What problem does it solve?
It eliminates the need to leave Neo4j to embed text, generate answers, or produce structured JSON by calling LLM providers directly from Cypher with the GenAI Plugin ai.text.* functions.
Core Features & Use Cases
- In-Cypher Embeddings & Batch Ingestion: Generate vector embeddings with
ai.text.embed() and ai.text.embedBatch() for storing vectors on nodes during ingestion.
- Completion, Chat, and Aggregation: Produce unstructured text with
ai.text.completion() and ai.text.aggregateCompletion(), and run stateful chat via ai.text.chat() (OpenAI / Azure).
- Structured Output with JSON Schema: Validate and return schema-constrained JSON maps using
ai.text.structuredCompletion() and aggregate structured results with ai.text.aggregateStructuredCompletion().
Quick Start
Run a Cypher query using the required CYPHER 25 prefix to call ai.text.embed() (or ai.text.completion()) for your selected provider while passing your API token and model via parameters.