Creator · neo4j-contrib
Last updated · Sep 4, 2026
Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher
Install targets
Codex install prompt
Install the "neo4j-genai-plugin-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-genai-plugin-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-genai-plugin-skill","task":"Install neo4j-genai-plugin-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + OpenAI Agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 69/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillDo not use when
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Agent should check
Copy prompt
Task: Use neo4j-genai-plugin-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-genai-plugin-skill&limit=3
Agent prompt
Use neo4j-genai-plugin-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-genai-plugin-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-genai-plugin-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, OpenAI Agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Run multimodal agents that operate desktop interfaces
Connect agents to hundreds of workflow automations
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
--- name: neo4j-genai-plugin-skill description: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher embedding generation, text completion, structured output, chat, tokenization, and batch ingestion. Covers ai.text.embed(), ai.text.embedBatch(), ai.text.completion(), ai.text.structuredCompletion(), ai.text.aggregateCompletion(), ai.text.chat(), ai.text.tokenCount(), ai.text.chunkByTokenLimit(), and provider configuration for OpenAI, Azure OpenAI, VertexAI, and Amazon Bedrock. Requires CYPHER 25. Replaces deprecated genai.vector.encode(). Use when writing pure-Cypher GraphRAG, embedding nodes in-graph, generating structured maps from prompts, or calling LLMs inside Cypher queries. Does NOT handle neo4j-graphrag Python library pipelines — use neo4j-graphrag-skill. Does NOT handle vector index creation/search — use neo4j-vector-index-skill. version: 1.0.7 status: active allowed-tools: Bash WebFetch ---
## When to Use - Generating embeddings inside Cypher without external Python (`ai.text.embed()`) - Batch-embedding nodes/chunks during ingestion (`ai.text.embedBatch()`) - Calling LLMs directly in Cypher for completions or GraphRAG (`ai.text.completion()`) - Extracting structured JSON maps from LLM inside Cypher (`ai.text.structuredCompletion()`) - Aggregating LLM summaries over grouped rows (`ai.text.aggregateCompletion()`) - Stateful chat sessions in Cypher (`ai.text.chat()`) - Counting tokens or chunking text by token limit (`ai.text.tokenCount()`, `ai.text.chunkByTokenLimit()`)
## When NOT to Use - **Python-based GraphRAG pipelines** (VectorCypherRetriever, HybridCypherRetriever) → `neo4j-graphrag-skill` - **Vector index CREATE / kNN search / SEARCH clause** → `neo4j-vector-index-skill` - **GDS embeddings** (FastRP, Node2Vec) → `neo4j-gds-skill` - **Fulltext / keyword search** → `neo4j-cypher-skill`
---
## Prerequisites
**CYPHER 25 required** for all `ai.*` functions. Two ways to enable:
```cypher // Per-query prefix (self-managed, no admin rights needed): CYPHER 25 MATCH (n:Chunk) ...
// Per-database default (admin; applies to all sessions): ALTER DATABASE neo4j SET DEFAULT LANGUAGE CYPHER 25 ```
**Installation:** - **Aura**: GenAI plugin enabled by default — no action needed - **Self-managed JAR**: copy plugin JAR to `plugins/` directory - **Docker**: `--env NEO4J_PLUGINS='["genai"]'`
---
## Provider Config Quick Reference
All `ai.text.*` functions accept a `configuration :: MAP` as last argument.
| Provider string | Required keys | Notes | |---|---|---| | `'openai'` | `token`, `model` | `token` = OpenAI API key | | `'azure-openai'` | `token`, `resource`, `model` | `token` = OAuth2 bearer; `resource` = Azure resource name | | `'vertexai'` | `model`, `project`, `region`, `token` or `apiKey` | `publisher` defaults to `'google'` | | `'bedrock-titan'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Embedding only | | `'bedrock-nova'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Completion only |
Optional for all: `vendorOptions :: MAP` passes provider-specific extras (e.g. `{ dimensions: 1024 }` for OpenAI).
❌ Never hardcode API key literals. ✅ Always use `$param` passed via driver parameters dict.
Full provider config table → [references/providers.md](references/providers.md)
---
## Embedding
### Single embed [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH c CALL { WITH c SET c.embedding = ai.text.embed(c.text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) } IN TRANSACTIONS OF 500 ROWS ```
`ai.text.embed()` returns `VECTOR` — directly storable and queryable in a vector index.
### Batch embed procedure [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH collect(c) AS chunks UNWIND chunks AS c WITH c.text AS text, c AS node CALL ai.text.embedBatch(text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) YIELD index, resource, vector MATCH (c:Chunk {text: resource}) SET c.embedding = vector ```
Procedure signature: `CALL ai.text.embedBatch(resource, provider, config) YIELD index, resource, vector`
### List configured embed providers
```cypher CYPHER 25 CALL ai.text.embed.providers() YIELD name, requiredConfigType, optionalConfigType, defaultConfig RETURN name, requiredConfigType ```
---
## Text Completion [2025.11]
```cypher CYPHER 25 RETURN ai.text.completion( 'Summarize: ' + $text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
Returns `STRING`.
### Aggregate completion — summarize across rows [2026.03]
```cypher CYPHER 25 MATCH (c:Chunk)-[:PART_OF]->(a:Article {id: $articleId}) RETURN ai.text.aggregateCompletion( c.text, 'Summarize the following article chunks in 3 sentences', 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
`value` parameter = each row's STRING fed to the LLM. Uses `toString()` for non-string values.
---
## Pure-Cypher GraphRAG Pattern
Embed question → vector search → graph traverse → LLM completion — all in one Cypher query:
```cypher CYPHER 25 WITH ai.text.embed($question, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) AS qEmbedding MATCH (chunk:Chunk) SEARCH chunk IN (VECTOR INDEX chunk_embedding FOR qEmbedding LIMIT 10) SCORE AS score // SEARCH preferred on 2026.x; db.index.vector.queryNodes() deprecated 2026.04 — SEARCH syntax → neo4j-vector-index-skill MATCH (chunk)<-[:HAS_CHUNK]-(article:Article) OPTIONAL MATCH path = shortestPath((article)-[*..3]-(other:Article)) WITH chunk, article, collect(DISTINCT other.title) AS related, score ORDER BY score DESC LIMIT 5 WITH collect(chunk.text + '\n[Source: ' + article.title + ']') AS context, $question AS question RETURN ai.text.completion( 'Answer based on context:\n' + reduce(s='', c IN context | s + c + '\n') + '\nQuestion: ' + question, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS answer ```
Key insight (Bergman): shortest path between seed nodes surfaces relationships not visible from direct neighbors alone.
---
## Structured Output [2026.02]
Returns `MAP` — directly storable as node properties or used downstream in Cypher.
```cypher CYPHER 25 MATCH (p:Product {id: $productId}) WITH p, ai.text.structuredCompletion( 'Extract key attributes from: ' + p.description, { type: 'object', properties: { category: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } }, priceRange: { type: 'string', enum: ['budget', 'mid', 'premium'] } }, required: ['category', 'tags', 'priceRange'], additionalProperties: false }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS extracted SET p.category = extracted.category, p.priceRange = extracted.priceRange WITH p, extracted.tags AS tags UNWIND tags AS tag MERGE (t:Tag {name: tag}) MERGE (p)-[:TAGGED]->(t) ```
### Aggregate structured completion — extract across multiple rows [2026.03]
```cypher CYPHER 25 MATCH (:User {id: $userId})-[:ORDERED]->(o:Order)-[:CONTAINS]->(p:Product) RETURN ai.text.aggregateStructuredCompletion( p.name + ': ' + p.category, 'Build a shopping profile for this user', { type: 'object', properties: { preferredCategories: { type: 'array', items: { type: 'string' } }, spendingTier: { type: 'string', enum: ['economy', 'standard', 'premium'] } }, required: ['preferredCategories', 'spendingTier'] }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS profile ```
---
## Chat [2025.12]
Supported providers: `openai` and `azure-openai` only.
```cypher // Start new conversation (chatId = null → new session) CYPHER 25 WITH ai.text.chat( 'Hello, who are you?', null, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId
// Continue conversation (pass returned chatId) CYPHER 25 WITH ai.text.chat( 'What did I just ask you?', $chatId, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId ```
Returns `MAP { message: STRING, chatId: STRING }`. Store `chatId` to continue session.
---
## Tokenization & Chunking [2026.04]
```cypher // Count tokens before sending to LLM CYPHER 25 RETURN ai.text.tokenCount($text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' }) AS tokenCount
// Chunk text by token limit (no external dependencies) CYPHER 25 UNWIND ai.text.chunkByTokenLimit($longText, 512, 'gpt-4', 50) AS chunk MERGE (c:Chunk { text: chunk })
// List providers supporting tokenCount CYPHER 25 CALL ai.text.tokenCount.providers() YIELD name, requiredConfigType RETURN name, requiredConfigType ```
Signatures: - `ai.text.tokenCount(input, provider, configuration = {}) :: INTEGER` — provider-driven tokenizer; uses provider config (token/model). Local tokenizer for `'openai'` (no API call); free API call for `'Bedrock'` and `'VertexAI'`. - `ai.text.chunkByTokenLimit(input, limit, model = 'gpt-4', overlap = 0) :: LIST<STRING>` — local OpenAI tokenizer keyed off `model`; no provider call, no `token` required. Chunks by newlines, then spaces, then token count. Set `limit` below provider max to leave room for prompt overhead.
`ai.text.embedBatch` [2026.04] supports `maxBatchSize` (config key) to cap data per API request — defaults to `8192` for `'openai'` and `'azure-openai'`; no default for `'vertexai'` (set if hitting token-limit errors).
---
## Write Gate
`SET node.embedding = ai.text.embed(...)` and `SET node.* = ai.text.structuredCompletion(...)` write to the graph.
Before bulk writes: 1. Count nodes first: `MATCH (c:Chunk) WHERE c.embedding IS NULL RETURN count(c)` 2. Verify config with one test node before batch 3. Use `CALL { ... } IN TRANSACTIONS OF 500 ROWS` for batches > 1000 nodes 4. Require explicit confirmation before executing
---
## Deprecated — Do NOT Use
| Old function | Replacement | |---|---| | `genai.vector.encode()` [deprecated] | `ai.text.embed()` | | `genai.vector.encodeBatch()` [deprecated] | `CALL ai.text.embedBatch()` | | `genai.vector.listEncodingProviders()` [deprecated] | `CALL ai.text.embed.providers()` |
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Unknown function 'ai.text.embed'` | Missing CYPHER 25 prefix OR plugin not installed | Add `CYPHER 25` prefix; verify plugin installed | | `Cypher version not supported` | Using `CYPHER 25` on Neo4j < 5.20 or missing plugin | Upgrade Neo4j; ensure GenAI plugin loaded | | `Configuration key 'token' missing` | Provider config map incomplete | Check required keys for provider (see table above) | | `null` returned from embed | Wrong model name or provider auth failed | Test with `RETURN ai.text.embed('test', 'openai', {token:$k, model:'text-embedding-3-small'})` standalone | | `Unsupported provider` | Provider string typo (case-sensitive, lowercase) | Use `'openai'` not `'OpenAI'`; run `CALL ai.text.embed.providers()` | | `ai.text.chat` fails on VertexAI | Chat only supported on openai/azure-openai | Switch to openai/azure-openai for chat |
---
## Checklist - [ ] `CYPHER 25` prefix present on every ai.text.* query - [ ] GenAI plugin installed (Aura: automatic; self-managed: JAR in plugins/) - [ ] API key passed as `$param`, never as literal string - [ ] `model` key explicit in config (no silent defaults) - [ ] Provider string lowercase (`'openai'`, `'vertexai'`, `'bedrock-titan'`) - [ ] Bulk writes use `IN TRANSACTIONS OF 500 ROWS`; count target nodes first - [ ] `genai.vector.encode()` replaced with `ai.text.embed()` [2025.11+] - [ ] Chat sessions: store returned `chatId` for continuation; only openai/azure-openai supported - [ ] Structured output schema uses `additionalProperties: false` to prevent hallucination keys
---
## References - [Full provider config](references/providers.md) — all required/optional keys per provider - [Official docs](https://neo4j.com/
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-genai-plugin-skill, ready for a manual X post.
neo4j-genai-plugin-skill: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x
Listing + install path for neo4j-genai-plugin-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K Starsn8n
Connect agents to hundreds of workflow automations
194.1K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsTasmota
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
24.7K StarsInstall targets
Codex install prompt
Install the "neo4j-genai-plugin-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-genai-plugin-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-genai-plugin-skill","task":"Install neo4j-genai-plugin-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + OpenAI Agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 69/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillDo not use when
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Agent should check
Copy prompt
Task: Use neo4j-genai-plugin-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-genai-plugin-skill&limit=3
Agent prompt
Use neo4j-genai-plugin-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-genai-plugin-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-genai-plugin-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, OpenAI Agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Run multimodal agents that operate desktop interfaces
Connect agents to hundreds of workflow automations
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
--- name: neo4j-genai-plugin-skill description: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher embedding generation, text completion, structured output, chat, tokenization, and batch ingestion. Covers ai.text.embed(), ai.text.embedBatch(), ai.text.completion(), ai.text.structuredCompletion(), ai.text.aggregateCompletion(), ai.text.chat(), ai.text.tokenCount(), ai.text.chunkByTokenLimit(), and provider configuration for OpenAI, Azure OpenAI, VertexAI, and Amazon Bedrock. Requires CYPHER 25. Replaces deprecated genai.vector.encode(). Use when writing pure-Cypher GraphRAG, embedding nodes in-graph, generating structured maps from prompts, or calling LLMs inside Cypher queries. Does NOT handle neo4j-graphrag Python library pipelines — use neo4j-graphrag-skill. Does NOT handle vector index creation/search — use neo4j-vector-index-skill. version: 1.0.7 status: active allowed-tools: Bash WebFetch ---
## When to Use - Generating embeddings inside Cypher without external Python (`ai.text.embed()`) - Batch-embedding nodes/chunks during ingestion (`ai.text.embedBatch()`) - Calling LLMs directly in Cypher for completions or GraphRAG (`ai.text.completion()`) - Extracting structured JSON maps from LLM inside Cypher (`ai.text.structuredCompletion()`) - Aggregating LLM summaries over grouped rows (`ai.text.aggregateCompletion()`) - Stateful chat sessions in Cypher (`ai.text.chat()`) - Counting tokens or chunking text by token limit (`ai.text.tokenCount()`, `ai.text.chunkByTokenLimit()`)
## When NOT to Use - **Python-based GraphRAG pipelines** (VectorCypherRetriever, HybridCypherRetriever) → `neo4j-graphrag-skill` - **Vector index CREATE / kNN search / SEARCH clause** → `neo4j-vector-index-skill` - **GDS embeddings** (FastRP, Node2Vec) → `neo4j-gds-skill` - **Fulltext / keyword search** → `neo4j-cypher-skill`
---
## Prerequisites
**CYPHER 25 required** for all `ai.*` functions. Two ways to enable:
```cypher // Per-query prefix (self-managed, no admin rights needed): CYPHER 25 MATCH (n:Chunk) ...
// Per-database default (admin; applies to all sessions): ALTER DATABASE neo4j SET DEFAULT LANGUAGE CYPHER 25 ```
**Installation:** - **Aura**: GenAI plugin enabled by default — no action needed - **Self-managed JAR**: copy plugin JAR to `plugins/` directory - **Docker**: `--env NEO4J_PLUGINS='["genai"]'`
---
## Provider Config Quick Reference
All `ai.text.*` functions accept a `configuration :: MAP` as last argument.
| Provider string | Required keys | Notes | |---|---|---| | `'openai'` | `token`, `model` | `token` = OpenAI API key | | `'azure-openai'` | `token`, `resource`, `model` | `token` = OAuth2 bearer; `resource` = Azure resource name | | `'vertexai'` | `model`, `project`, `region`, `token` or `apiKey` | `publisher` defaults to `'google'` | | `'bedrock-titan'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Embedding only | | `'bedrock-nova'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Completion only |
Optional for all: `vendorOptions :: MAP` passes provider-specific extras (e.g. `{ dimensions: 1024 }` for OpenAI).
❌ Never hardcode API key literals. ✅ Always use `$param` passed via driver parameters dict.
Full provider config table → [references/providers.md](references/providers.md)
---
## Embedding
### Single embed [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH c CALL { WITH c SET c.embedding = ai.text.embed(c.text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) } IN TRANSACTIONS OF 500 ROWS ```
`ai.text.embed()` returns `VECTOR` — directly storable and queryable in a vector index.
### Batch embed procedure [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH collect(c) AS chunks UNWIND chunks AS c WITH c.text AS text, c AS node CALL ai.text.embedBatch(text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) YIELD index, resource, vector MATCH (c:Chunk {text: resource}) SET c.embedding = vector ```
Procedure signature: `CALL ai.text.embedBatch(resource, provider, config) YIELD index, resource, vector`
### List configured embed providers
```cypher CYPHER 25 CALL ai.text.embed.providers() YIELD name, requiredConfigType, optionalConfigType, defaultConfig RETURN name, requiredConfigType ```
---
## Text Completion [2025.11]
```cypher CYPHER 25 RETURN ai.text.completion( 'Summarize: ' + $text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
Returns `STRING`.
### Aggregate completion — summarize across rows [2026.03]
```cypher CYPHER 25 MATCH (c:Chunk)-[:PART_OF]->(a:Article {id: $articleId}) RETURN ai.text.aggregateCompletion( c.text, 'Summarize the following article chunks in 3 sentences', 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
`value` parameter = each row's STRING fed to the LLM. Uses `toString()` for non-string values.
---
## Pure-Cypher GraphRAG Pattern
Embed question → vector search → graph traverse → LLM completion — all in one Cypher query:
```cypher CYPHER 25 WITH ai.text.embed($question, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) AS qEmbedding MATCH (chunk:Chunk) SEARCH chunk IN (VECTOR INDEX chunk_embedding FOR qEmbedding LIMIT 10) SCORE AS score // SEARCH preferred on 2026.x; db.index.vector.queryNodes() deprecated 2026.04 — SEARCH syntax → neo4j-vector-index-skill MATCH (chunk)<-[:HAS_CHUNK]-(article:Article) OPTIONAL MATCH path = shortestPath((article)-[*..3]-(other:Article)) WITH chunk, article, collect(DISTINCT other.title) AS related, score ORDER BY score DESC LIMIT 5 WITH collect(chunk.text + '\n[Source: ' + article.title + ']') AS context, $question AS question RETURN ai.text.completion( 'Answer based on context:\n' + reduce(s='', c IN context | s + c + '\n') + '\nQuestion: ' + question, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS answer ```
Key insight (Bergman): shortest path between seed nodes surfaces relationships not visible from direct neighbors alone.
---
## Structured Output [2026.02]
Returns `MAP` — directly storable as node properties or used downstream in Cypher.
```cypher CYPHER 25 MATCH (p:Product {id: $productId}) WITH p, ai.text.structuredCompletion( 'Extract key attributes from: ' + p.description, { type: 'object', properties: { category: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } }, priceRange: { type: 'string', enum: ['budget', 'mid', 'premium'] } }, required: ['category', 'tags', 'priceRange'], additionalProperties: false }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS extracted SET p.category = extracted.category, p.priceRange = extracted.priceRange WITH p, extracted.tags AS tags UNWIND tags AS tag MERGE (t:Tag {name: tag}) MERGE (p)-[:TAGGED]->(t) ```
### Aggregate structured completion — extract across multiple rows [2026.03]
```cypher CYPHER 25 MATCH (:User {id: $userId})-[:ORDERED]->(o:Order)-[:CONTAINS]->(p:Product) RETURN ai.text.aggregateStructuredCompletion( p.name + ': ' + p.category, 'Build a shopping profile for this user', { type: 'object', properties: { preferredCategories: { type: 'array', items: { type: 'string' } }, spendingTier: { type: 'string', enum: ['economy', 'standard', 'premium'] } }, required: ['preferredCategories', 'spendingTier'] }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS profile ```
---
## Chat [2025.12]
Supported providers: `openai` and `azure-openai` only.
```cypher // Start new conversation (chatId = null → new session) CYPHER 25 WITH ai.text.chat( 'Hello, who are you?', null, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId
// Continue conversation (pass returned chatId) CYPHER 25 WITH ai.text.chat( 'What did I just ask you?', $chatId, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId ```
Returns `MAP { message: STRING, chatId: STRING }`. Store `chatId` to continue session.
---
## Tokenization & Chunking [2026.04]
```cypher // Count tokens before sending to LLM CYPHER 25 RETURN ai.text.tokenCount($text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' }) AS tokenCount
// Chunk text by token limit (no external dependencies) CYPHER 25 UNWIND ai.text.chunkByTokenLimit($longText, 512, 'gpt-4', 50) AS chunk MERGE (c:Chunk { text: chunk })
// List providers supporting tokenCount CYPHER 25 CALL ai.text.tokenCount.providers() YIELD name, requiredConfigType RETURN name, requiredConfigType ```
Signatures: - `ai.text.tokenCount(input, provider, configuration = {}) :: INTEGER` — provider-driven tokenizer; uses provider config (token/model). Local tokenizer for `'openai'` (no API call); free API call for `'Bedrock'` and `'VertexAI'`. - `ai.text.chunkByTokenLimit(input, limit, model = 'gpt-4', overlap = 0) :: LIST<STRING>` — local OpenAI tokenizer keyed off `model`; no provider call, no `token` required. Chunks by newlines, then spaces, then token count. Set `limit` below provider max to leave room for prompt overhead.
`ai.text.embedBatch` [2026.04] supports `maxBatchSize` (config key) to cap data per API request — defaults to `8192` for `'openai'` and `'azure-openai'`; no default for `'vertexai'` (set if hitting token-limit errors).
---
## Write Gate
`SET node.embedding = ai.text.embed(...)` and `SET node.* = ai.text.structuredCompletion(...)` write to the graph.
Before bulk writes: 1. Count nodes first: `MATCH (c:Chunk) WHERE c.embedding IS NULL RETURN count(c)` 2. Verify config with one test node before batch 3. Use `CALL { ... } IN TRANSACTIONS OF 500 ROWS` for batches > 1000 nodes 4. Require explicit confirmation before executing
---
## Deprecated — Do NOT Use
| Old function | Replacement | |---|---| | `genai.vector.encode()` [deprecated] | `ai.text.embed()` | | `genai.vector.encodeBatch()` [deprecated] | `CALL ai.text.embedBatch()` | | `genai.vector.listEncodingProviders()` [deprecated] | `CALL ai.text.embed.providers()` |
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Unknown function 'ai.text.embed'` | Missing CYPHER 25 prefix OR plugin not installed | Add `CYPHER 25` prefix; verify plugin installed | | `Cypher version not supported` | Using `CYPHER 25` on Neo4j < 5.20 or missing plugin | Upgrade Neo4j; ensure GenAI plugin loaded | | `Configuration key 'token' missing` | Provider config map incomplete | Check required keys for provider (see table above) | | `null` returned from embed | Wrong model name or provider auth failed | Test with `RETURN ai.text.embed('test', 'openai', {token:$k, model:'text-embedding-3-small'})` standalone | | `Unsupported provider` | Provider string typo (case-sensitive, lowercase) | Use `'openai'` not `'OpenAI'`; run `CALL ai.text.embed.providers()` | | `ai.text.chat` fails on VertexAI | Chat only supported on openai/azure-openai | Switch to openai/azure-openai for chat |
---
## Checklist - [ ] `CYPHER 25` prefix present on every ai.text.* query - [ ] GenAI plugin installed (Aura: automatic; self-managed: JAR in plugins/) - [ ] API key passed as `$param`, never as literal string - [ ] `model` key explicit in config (no silent defaults) - [ ] Provider string lowercase (`'openai'`, `'vertexai'`, `'bedrock-titan'`) - [ ] Bulk writes use `IN TRANSACTIONS OF 500 ROWS`; count target nodes first - [ ] `genai.vector.encode()` replaced with `ai.text.embed()` [2025.11+] - [ ] Chat sessions: store returned `chatId` for continuation; only openai/azure-openai supported - [ ] Structured output schema uses `additionalProperties: false` to prevent hallucination keys
---
## References - [Full provider config](references/providers.md) — all required/optional keys per provider - [Official docs](https://neo4j.com/
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-genai-plugin-skill, ready for a manual X post.
neo4j-genai-plugin-skill: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x
Listing + install path for neo4j-genai-plugin-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K Starsn8n
Connect agents to hundreds of workflow automations
194.1K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsTasmota
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
24.7K StarsInstall targets
Codex install prompt
Install the "neo4j-genai-plugin-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-genai-plugin-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-genai-plugin-skill","task":"Install neo4j-genai-plugin-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + OpenAI Agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 69/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillDo not use when
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Agent should check
Copy prompt
Task: Use neo4j-genai-plugin-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-genai-plugin-skill&limit=3
Agent prompt
Use neo4j-genai-plugin-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-genai-plugin-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-genai-plugin-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, OpenAI Agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Run multimodal agents that operate desktop interfaces
Connect agents to hundreds of workflow automations
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
--- name: neo4j-genai-plugin-skill description: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher embedding generation, text completion, structured output, chat, tokenization, and batch ingestion. Covers ai.text.embed(), ai.text.embedBatch(), ai.text.completion(), ai.text.structuredCompletion(), ai.text.aggregateCompletion(), ai.text.chat(), ai.text.tokenCount(), ai.text.chunkByTokenLimit(), and provider configuration for OpenAI, Azure OpenAI, VertexAI, and Amazon Bedrock. Requires CYPHER 25. Replaces deprecated genai.vector.encode(). Use when writing pure-Cypher GraphRAG, embedding nodes in-graph, generating structured maps from prompts, or calling LLMs inside Cypher queries. Does NOT handle neo4j-graphrag Python library pipelines — use neo4j-graphrag-skill. Does NOT handle vector index creation/search — use neo4j-vector-index-skill. version: 1.0.7 status: active allowed-tools: Bash WebFetch ---
## When to Use - Generating embeddings inside Cypher without external Python (`ai.text.embed()`) - Batch-embedding nodes/chunks during ingestion (`ai.text.embedBatch()`) - Calling LLMs directly in Cypher for completions or GraphRAG (`ai.text.completion()`) - Extracting structured JSON maps from LLM inside Cypher (`ai.text.structuredCompletion()`) - Aggregating LLM summaries over grouped rows (`ai.text.aggregateCompletion()`) - Stateful chat sessions in Cypher (`ai.text.chat()`) - Counting tokens or chunking text by token limit (`ai.text.tokenCount()`, `ai.text.chunkByTokenLimit()`)
## When NOT to Use - **Python-based GraphRAG pipelines** (VectorCypherRetriever, HybridCypherRetriever) → `neo4j-graphrag-skill` - **Vector index CREATE / kNN search / SEARCH clause** → `neo4j-vector-index-skill` - **GDS embeddings** (FastRP, Node2Vec) → `neo4j-gds-skill` - **Fulltext / keyword search** → `neo4j-cypher-skill`
---
## Prerequisites
**CYPHER 25 required** for all `ai.*` functions. Two ways to enable:
```cypher // Per-query prefix (self-managed, no admin rights needed): CYPHER 25 MATCH (n:Chunk) ...
// Per-database default (admin; applies to all sessions): ALTER DATABASE neo4j SET DEFAULT LANGUAGE CYPHER 25 ```
**Installation:** - **Aura**: GenAI plugin enabled by default — no action needed - **Self-managed JAR**: copy plugin JAR to `plugins/` directory - **Docker**: `--env NEO4J_PLUGINS='["genai"]'`
---
## Provider Config Quick Reference
All `ai.text.*` functions accept a `configuration :: MAP` as last argument.
| Provider string | Required keys | Notes | |---|---|---| | `'openai'` | `token`, `model` | `token` = OpenAI API key | | `'azure-openai'` | `token`, `resource`, `model` | `token` = OAuth2 bearer; `resource` = Azure resource name | | `'vertexai'` | `model`, `project`, `region`, `token` or `apiKey` | `publisher` defaults to `'google'` | | `'bedrock-titan'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Embedding only | | `'bedrock-nova'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Completion only |
Optional for all: `vendorOptions :: MAP` passes provider-specific extras (e.g. `{ dimensions: 1024 }` for OpenAI).
❌ Never hardcode API key literals. ✅ Always use `$param` passed via driver parameters dict.
Full provider config table → [references/providers.md](references/providers.md)
---
## Embedding
### Single embed [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH c CALL { WITH c SET c.embedding = ai.text.embed(c.text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) } IN TRANSACTIONS OF 500 ROWS ```
`ai.text.embed()` returns `VECTOR` — directly storable and queryable in a vector index.
### Batch embed procedure [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH collect(c) AS chunks UNWIND chunks AS c WITH c.text AS text, c AS node CALL ai.text.embedBatch(text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) YIELD index, resource, vector MATCH (c:Chunk {text: resource}) SET c.embedding = vector ```
Procedure signature: `CALL ai.text.embedBatch(resource, provider, config) YIELD index, resource, vector`
### List configured embed providers
```cypher CYPHER 25 CALL ai.text.embed.providers() YIELD name, requiredConfigType, optionalConfigType, defaultConfig RETURN name, requiredConfigType ```
---
## Text Completion [2025.11]
```cypher CYPHER 25 RETURN ai.text.completion( 'Summarize: ' + $text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
Returns `STRING`.
### Aggregate completion — summarize across rows [2026.03]
```cypher CYPHER 25 MATCH (c:Chunk)-[:PART_OF]->(a:Article {id: $articleId}) RETURN ai.text.aggregateCompletion( c.text, 'Summarize the following article chunks in 3 sentences', 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
`value` parameter = each row's STRING fed to the LLM. Uses `toString()` for non-string values.
---
## Pure-Cypher GraphRAG Pattern
Embed question → vector search → graph traverse → LLM completion — all in one Cypher query:
```cypher CYPHER 25 WITH ai.text.embed($question, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) AS qEmbedding MATCH (chunk:Chunk) SEARCH chunk IN (VECTOR INDEX chunk_embedding FOR qEmbedding LIMIT 10) SCORE AS score // SEARCH preferred on 2026.x; db.index.vector.queryNodes() deprecated 2026.04 — SEARCH syntax → neo4j-vector-index-skill MATCH (chunk)<-[:HAS_CHUNK]-(article:Article) OPTIONAL MATCH path = shortestPath((article)-[*..3]-(other:Article)) WITH chunk, article, collect(DISTINCT other.title) AS related, score ORDER BY score DESC LIMIT 5 WITH collect(chunk.text + '\n[Source: ' + article.title + ']') AS context, $question AS question RETURN ai.text.completion( 'Answer based on context:\n' + reduce(s='', c IN context | s + c + '\n') + '\nQuestion: ' + question, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS answer ```
Key insight (Bergman): shortest path between seed nodes surfaces relationships not visible from direct neighbors alone.
---
## Structured Output [2026.02]
Returns `MAP` — directly storable as node properties or used downstream in Cypher.
```cypher CYPHER 25 MATCH (p:Product {id: $productId}) WITH p, ai.text.structuredCompletion( 'Extract key attributes from: ' + p.description, { type: 'object', properties: { category: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } }, priceRange: { type: 'string', enum: ['budget', 'mid', 'premium'] } }, required: ['category', 'tags', 'priceRange'], additionalProperties: false }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS extracted SET p.category = extracted.category, p.priceRange = extracted.priceRange WITH p, extracted.tags AS tags UNWIND tags AS tag MERGE (t:Tag {name: tag}) MERGE (p)-[:TAGGED]->(t) ```
### Aggregate structured completion — extract across multiple rows [2026.03]
```cypher CYPHER 25 MATCH (:User {id: $userId})-[:ORDERED]->(o:Order)-[:CONTAINS]->(p:Product) RETURN ai.text.aggregateStructuredCompletion( p.name + ': ' + p.category, 'Build a shopping profile for this user', { type: 'object', properties: { preferredCategories: { type: 'array', items: { type: 'string' } }, spendingTier: { type: 'string', enum: ['economy', 'standard', 'premium'] } }, required: ['preferredCategories', 'spendingTier'] }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS profile ```
---
## Chat [2025.12]
Supported providers: `openai` and `azure-openai` only.
```cypher // Start new conversation (chatId = null → new session) CYPHER 25 WITH ai.text.chat( 'Hello, who are you?', null, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId
// Continue conversation (pass returned chatId) CYPHER 25 WITH ai.text.chat( 'What did I just ask you?', $chatId, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId ```
Returns `MAP { message: STRING, chatId: STRING }`. Store `chatId` to continue session.
---
## Tokenization & Chunking [2026.04]
```cypher // Count tokens before sending to LLM CYPHER 25 RETURN ai.text.tokenCount($text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' }) AS tokenCount
// Chunk text by token limit (no external dependencies) CYPHER 25 UNWIND ai.text.chunkByTokenLimit($longText, 512, 'gpt-4', 50) AS chunk MERGE (c:Chunk { text: chunk })
// List providers supporting tokenCount CYPHER 25 CALL ai.text.tokenCount.providers() YIELD name, requiredConfigType RETURN name, requiredConfigType ```
Signatures: - `ai.text.tokenCount(input, provider, configuration = {}) :: INTEGER` — provider-driven tokenizer; uses provider config (token/model). Local tokenizer for `'openai'` (no API call); free API call for `'Bedrock'` and `'VertexAI'`. - `ai.text.chunkByTokenLimit(input, limit, model = 'gpt-4', overlap = 0) :: LIST<STRING>` — local OpenAI tokenizer keyed off `model`; no provider call, no `token` required. Chunks by newlines, then spaces, then token count. Set `limit` below provider max to leave room for prompt overhead.
`ai.text.embedBatch` [2026.04] supports `maxBatchSize` (config key) to cap data per API request — defaults to `8192` for `'openai'` and `'azure-openai'`; no default for `'vertexai'` (set if hitting token-limit errors).
---
## Write Gate
`SET node.embedding = ai.text.embed(...)` and `SET node.* = ai.text.structuredCompletion(...)` write to the graph.
Before bulk writes: 1. Count nodes first: `MATCH (c:Chunk) WHERE c.embedding IS NULL RETURN count(c)` 2. Verify config with one test node before batch 3. Use `CALL { ... } IN TRANSACTIONS OF 500 ROWS` for batches > 1000 nodes 4. Require explicit confirmation before executing
---
## Deprecated — Do NOT Use
| Old function | Replacement | |---|---| | `genai.vector.encode()` [deprecated] | `ai.text.embed()` | | `genai.vector.encodeBatch()` [deprecated] | `CALL ai.text.embedBatch()` | | `genai.vector.listEncodingProviders()` [deprecated] | `CALL ai.text.embed.providers()` |
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Unknown function 'ai.text.embed'` | Missing CYPHER 25 prefix OR plugin not installed | Add `CYPHER 25` prefix; verify plugin installed | | `Cypher version not supported` | Using `CYPHER 25` on Neo4j < 5.20 or missing plugin | Upgrade Neo4j; ensure GenAI plugin loaded | | `Configuration key 'token' missing` | Provider config map incomplete | Check required keys for provider (see table above) | | `null` returned from embed | Wrong model name or provider auth failed | Test with `RETURN ai.text.embed('test', 'openai', {token:$k, model:'text-embedding-3-small'})` standalone | | `Unsupported provider` | Provider string typo (case-sensitive, lowercase) | Use `'openai'` not `'OpenAI'`; run `CALL ai.text.embed.providers()` | | `ai.text.chat` fails on VertexAI | Chat only supported on openai/azure-openai | Switch to openai/azure-openai for chat |
---
## Checklist - [ ] `CYPHER 25` prefix present on every ai.text.* query - [ ] GenAI plugin installed (Aura: automatic; self-managed: JAR in plugins/) - [ ] API key passed as `$param`, never as literal string - [ ] `model` key explicit in config (no silent defaults) - [ ] Provider string lowercase (`'openai'`, `'vertexai'`, `'bedrock-titan'`) - [ ] Bulk writes use `IN TRANSACTIONS OF 500 ROWS`; count target nodes first - [ ] `genai.vector.encode()` replaced with `ai.text.embed()` [2025.11+] - [ ] Chat sessions: store returned `chatId` for continuation; only openai/azure-openai supported - [ ] Structured output schema uses `additionalProperties: false` to prevent hallucination keys
---
## References - [Full provider config](references/providers.md) — all required/optional keys per provider - [Official docs](https://neo4j.com/
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-genai-plugin-skill, ready for a manual X post.
neo4j-genai-plugin-skill: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x
Listing + install path for neo4j-genai-plugin-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K Starsn8n
Connect agents to hundreds of workflow automations
194.1K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsTasmota
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
24.7K StarsInstall targets
Codex install prompt
Install the "neo4j-genai-plugin-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-genai-plugin-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-genai-plugin-skill","task":"Install neo4j-genai-plugin-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + OpenAI Agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 69/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillDo not use when
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Agent should check
Copy prompt
Task: Use neo4j-genai-plugin-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-genai-plugin-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-genai-plugin-skill&limit=3
Agent prompt
Use neo4j-genai-plugin-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-genai-plugin-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-genai-plugin-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-genai-plugin-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-genai-plugin-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, OpenAI Agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Run multimodal agents that operate desktop interfaces
Connect agents to hundreds of workflow automations
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
--- name: neo4j-genai-plugin-skill description: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher embedding generation, text completion, structured output, chat, tokenization, and batch ingestion. Covers ai.text.embed(), ai.text.embedBatch(), ai.text.completion(), ai.text.structuredCompletion(), ai.text.aggregateCompletion(), ai.text.chat(), ai.text.tokenCount(), ai.text.chunkByTokenLimit(), and provider configuration for OpenAI, Azure OpenAI, VertexAI, and Amazon Bedrock. Requires CYPHER 25. Replaces deprecated genai.vector.encode(). Use when writing pure-Cypher GraphRAG, embedding nodes in-graph, generating structured maps from prompts, or calling LLMs inside Cypher queries. Does NOT handle neo4j-graphrag Python library pipelines — use neo4j-graphrag-skill. Does NOT handle vector index creation/search — use neo4j-vector-index-skill. version: 1.0.7 status: active allowed-tools: Bash WebFetch ---
## When to Use - Generating embeddings inside Cypher without external Python (`ai.text.embed()`) - Batch-embedding nodes/chunks during ingestion (`ai.text.embedBatch()`) - Calling LLMs directly in Cypher for completions or GraphRAG (`ai.text.completion()`) - Extracting structured JSON maps from LLM inside Cypher (`ai.text.structuredCompletion()`) - Aggregating LLM summaries over grouped rows (`ai.text.aggregateCompletion()`) - Stateful chat sessions in Cypher (`ai.text.chat()`) - Counting tokens or chunking text by token limit (`ai.text.tokenCount()`, `ai.text.chunkByTokenLimit()`)
## When NOT to Use - **Python-based GraphRAG pipelines** (VectorCypherRetriever, HybridCypherRetriever) → `neo4j-graphrag-skill` - **Vector index CREATE / kNN search / SEARCH clause** → `neo4j-vector-index-skill` - **GDS embeddings** (FastRP, Node2Vec) → `neo4j-gds-skill` - **Fulltext / keyword search** → `neo4j-cypher-skill`
---
## Prerequisites
**CYPHER 25 required** for all `ai.*` functions. Two ways to enable:
```cypher // Per-query prefix (self-managed, no admin rights needed): CYPHER 25 MATCH (n:Chunk) ...
// Per-database default (admin; applies to all sessions): ALTER DATABASE neo4j SET DEFAULT LANGUAGE CYPHER 25 ```
**Installation:** - **Aura**: GenAI plugin enabled by default — no action needed - **Self-managed JAR**: copy plugin JAR to `plugins/` directory - **Docker**: `--env NEO4J_PLUGINS='["genai"]'`
---
## Provider Config Quick Reference
All `ai.text.*` functions accept a `configuration :: MAP` as last argument.
| Provider string | Required keys | Notes | |---|---|---| | `'openai'` | `token`, `model` | `token` = OpenAI API key | | `'azure-openai'` | `token`, `resource`, `model` | `token` = OAuth2 bearer; `resource` = Azure resource name | | `'vertexai'` | `model`, `project`, `region`, `token` or `apiKey` | `publisher` defaults to `'google'` | | `'bedrock-titan'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Embedding only | | `'bedrock-nova'` | `model`, `region`, `accessKeyId`, `secretAccessKey` | Completion only |
Optional for all: `vendorOptions :: MAP` passes provider-specific extras (e.g. `{ dimensions: 1024 }` for OpenAI).
❌ Never hardcode API key literals. ✅ Always use `$param` passed via driver parameters dict.
Full provider config table → [references/providers.md](references/providers.md)
---
## Embedding
### Single embed [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH c CALL { WITH c SET c.embedding = ai.text.embed(c.text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) } IN TRANSACTIONS OF 500 ROWS ```
`ai.text.embed()` returns `VECTOR` — directly storable and queryable in a vector index.
### Batch embed procedure [2025.11]
```cypher CYPHER 25 MATCH (c:Chunk) WHERE c.embedding IS NULL WITH collect(c) AS chunks UNWIND chunks AS c WITH c.text AS text, c AS node CALL ai.text.embedBatch(text, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) YIELD index, resource, vector MATCH (c:Chunk {text: resource}) SET c.embedding = vector ```
Procedure signature: `CALL ai.text.embedBatch(resource, provider, config) YIELD index, resource, vector`
### List configured embed providers
```cypher CYPHER 25 CALL ai.text.embed.providers() YIELD name, requiredConfigType, optionalConfigType, defaultConfig RETURN name, requiredConfigType ```
---
## Text Completion [2025.11]
```cypher CYPHER 25 RETURN ai.text.completion( 'Summarize: ' + $text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
Returns `STRING`.
### Aggregate completion — summarize across rows [2026.03]
```cypher CYPHER 25 MATCH (c:Chunk)-[:PART_OF]->(a:Article {id: $articleId}) RETURN ai.text.aggregateCompletion( c.text, 'Summarize the following article chunks in 3 sentences', 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS summary ```
`value` parameter = each row's STRING fed to the LLM. Uses `toString()` for non-string values.
---
## Pure-Cypher GraphRAG Pattern
Embed question → vector search → graph traverse → LLM completion — all in one Cypher query:
```cypher CYPHER 25 WITH ai.text.embed($question, 'openai', { token: $openaiKey, model: 'text-embedding-3-small' }) AS qEmbedding MATCH (chunk:Chunk) SEARCH chunk IN (VECTOR INDEX chunk_embedding FOR qEmbedding LIMIT 10) SCORE AS score // SEARCH preferred on 2026.x; db.index.vector.queryNodes() deprecated 2026.04 — SEARCH syntax → neo4j-vector-index-skill MATCH (chunk)<-[:HAS_CHUNK]-(article:Article) OPTIONAL MATCH path = shortestPath((article)-[*..3]-(other:Article)) WITH chunk, article, collect(DISTINCT other.title) AS related, score ORDER BY score DESC LIMIT 5 WITH collect(chunk.text + '\n[Source: ' + article.title + ']') AS context, $question AS question RETURN ai.text.completion( 'Answer based on context:\n' + reduce(s='', c IN context | s + c + '\n') + '\nQuestion: ' + question, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS answer ```
Key insight (Bergman): shortest path between seed nodes surfaces relationships not visible from direct neighbors alone.
---
## Structured Output [2026.02]
Returns `MAP` — directly storable as node properties or used downstream in Cypher.
```cypher CYPHER 25 MATCH (p:Product {id: $productId}) WITH p, ai.text.structuredCompletion( 'Extract key attributes from: ' + p.description, { type: 'object', properties: { category: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } }, priceRange: { type: 'string', enum: ['budget', 'mid', 'premium'] } }, required: ['category', 'tags', 'priceRange'], additionalProperties: false }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS extracted SET p.category = extracted.category, p.priceRange = extracted.priceRange WITH p, extracted.tags AS tags UNWIND tags AS tag MERGE (t:Tag {name: tag}) MERGE (p)-[:TAGGED]->(t) ```
### Aggregate structured completion — extract across multiple rows [2026.03]
```cypher CYPHER 25 MATCH (:User {id: $userId})-[:ORDERED]->(o:Order)-[:CONTAINS]->(p:Product) RETURN ai.text.aggregateStructuredCompletion( p.name + ': ' + p.category, 'Build a shopping profile for this user', { type: 'object', properties: { preferredCategories: { type: 'array', items: { type: 'string' } }, spendingTier: { type: 'string', enum: ['economy', 'standard', 'premium'] } }, required: ['preferredCategories', 'spendingTier'] }, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS profile ```
---
## Chat [2025.12]
Supported providers: `openai` and `azure-openai` only.
```cypher // Start new conversation (chatId = null → new session) CYPHER 25 WITH ai.text.chat( 'Hello, who are you?', null, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId
// Continue conversation (pass returned chatId) CYPHER 25 WITH ai.text.chat( 'What did I just ask you?', $chatId, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' } ) AS result RETURN result.message AS reply, result.chatId AS sessionId ```
Returns `MAP { message: STRING, chatId: STRING }`. Store `chatId` to continue session.
---
## Tokenization & Chunking [2026.04]
```cypher // Count tokens before sending to LLM CYPHER 25 RETURN ai.text.tokenCount($text, 'openai', { token: $openaiKey, model: 'gpt-4o-mini' }) AS tokenCount
// Chunk text by token limit (no external dependencies) CYPHER 25 UNWIND ai.text.chunkByTokenLimit($longText, 512, 'gpt-4', 50) AS chunk MERGE (c:Chunk { text: chunk })
// List providers supporting tokenCount CYPHER 25 CALL ai.text.tokenCount.providers() YIELD name, requiredConfigType RETURN name, requiredConfigType ```
Signatures: - `ai.text.tokenCount(input, provider, configuration = {}) :: INTEGER` — provider-driven tokenizer; uses provider config (token/model). Local tokenizer for `'openai'` (no API call); free API call for `'Bedrock'` and `'VertexAI'`. - `ai.text.chunkByTokenLimit(input, limit, model = 'gpt-4', overlap = 0) :: LIST<STRING>` — local OpenAI tokenizer keyed off `model`; no provider call, no `token` required. Chunks by newlines, then spaces, then token count. Set `limit` below provider max to leave room for prompt overhead.
`ai.text.embedBatch` [2026.04] supports `maxBatchSize` (config key) to cap data per API request — defaults to `8192` for `'openai'` and `'azure-openai'`; no default for `'vertexai'` (set if hitting token-limit errors).
---
## Write Gate
`SET node.embedding = ai.text.embed(...)` and `SET node.* = ai.text.structuredCompletion(...)` write to the graph.
Before bulk writes: 1. Count nodes first: `MATCH (c:Chunk) WHERE c.embedding IS NULL RETURN count(c)` 2. Verify config with one test node before batch 3. Use `CALL { ... } IN TRANSACTIONS OF 500 ROWS` for batches > 1000 nodes 4. Require explicit confirmation before executing
---
## Deprecated — Do NOT Use
| Old function | Replacement | |---|---| | `genai.vector.encode()` [deprecated] | `ai.text.embed()` | | `genai.vector.encodeBatch()` [deprecated] | `CALL ai.text.embedBatch()` | | `genai.vector.listEncodingProviders()` [deprecated] | `CALL ai.text.embed.providers()` |
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Unknown function 'ai.text.embed'` | Missing CYPHER 25 prefix OR plugin not installed | Add `CYPHER 25` prefix; verify plugin installed | | `Cypher version not supported` | Using `CYPHER 25` on Neo4j < 5.20 or missing plugin | Upgrade Neo4j; ensure GenAI plugin loaded | | `Configuration key 'token' missing` | Provider config map incomplete | Check required keys for provider (see table above) | | `null` returned from embed | Wrong model name or provider auth failed | Test with `RETURN ai.text.embed('test', 'openai', {token:$k, model:'text-embedding-3-small'})` standalone | | `Unsupported provider` | Provider string typo (case-sensitive, lowercase) | Use `'openai'` not `'OpenAI'`; run `CALL ai.text.embed.providers()` | | `ai.text.chat` fails on VertexAI | Chat only supported on openai/azure-openai | Switch to openai/azure-openai for chat |
---
## Checklist - [ ] `CYPHER 25` prefix present on every ai.text.* query - [ ] GenAI plugin installed (Aura: automatic; self-managed: JAR in plugins/) - [ ] API key passed as `$param`, never as literal string - [ ] `model` key explicit in config (no silent defaults) - [ ] Provider string lowercase (`'openai'`, `'vertexai'`, `'bedrock-titan'`) - [ ] Bulk writes use `IN TRANSACTIONS OF 500 ROWS`; count target nodes first - [ ] `genai.vector.encode()` replaced with `ai.text.embed()` [2025.11+] - [ ] Chat sessions: store returned `chatId` for continuation; only openai/azure-openai supported - [ ] Structured output schema uses `additionalProperties: false` to prevent hallucination keys
---
## References - [Full provider config](references/providers.md) — all required/optional keys per provider - [Official docs](https://neo4j.com/
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-genai-plugin-skill, ready for a manual X post.
neo4j-genai-plugin-skill: Use Neo4j GenAI Plugin ai.text.* functions and procedures for in-Cypher 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x
Listing + install path for neo4j-genai-plugin-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-genai-plugin-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-genai-plugin-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K Starsn8n
Connect agents to hundreds of workflow automations
194.1K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsTasmota
Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
24.7K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness