Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
中文简介正在准备中。当前显示原文说明。
Neo4j best practices for Cypher query optimization, graph data modeling, indexing, and safe execution of LLM-generated Cypher
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
EXPLAIN to validate a query plan without executing it — the mandatory pre-execution gate for any generated CypherPROFILE to see actual DB hits, rows, and time per operator when a query is already known-safeNodeByLabelScan/AllNodesScan where an index seek (NodeIndexSeek) was expected — usually a missing index or non-sargable predicateCartesianProduct — almost always an unintended disconnected pattern; add a relationship or WHERE join conditionEager operators — they materialize the whole intermediate result and block streaming; common with MERGE combined with earlier writes/reads in the same queryMATCH, not after a chain of traversalsWHERE on indexed properties, not on computed/derived expressions (kills index usage)-[:FOLLOWS]->) over untyped/undirected ones — undirected patterns force the planner to consider both directions[:LINKS*1..3]) — unbounded (*) traversals on non-trivial graphs risk combinatorial blowupLIMIT with ORDER BY early in multi-part queries (WITH ... LIMIT ...) to avoid sorting the full result setEntity nodes with a type property — this collapses the type system into runtime string comparisons and defeats label-based indexing:PURCHASED, :AUTHORED) — do not reuse one generic relationship type (:RELATED_TO) with a property to distinguish meaning<-[]- rather than modeling both directionssince, until) or intermediate event nodes when a fact changes over time, rather than overwriting node properties and losing historyWHERE/MERGE matching at scaleCONTAINS/ENDS WITH queries on string properties (range indexes only accelerate prefix/exact matches)point() property queriesdb.index.fulltext.queryNodes)MERGE — without it, concurrent MERGE can create duplicate nodesneo4j.DriverWithContext per process; open short-lived Sessions per unit of work, never share a session across goroutinesExecuteRead/ExecuteWrite (managed transactions) instead of manual BeginTransaction — they provide automatic retry on transient errors (leader switch, deadlock)fmt.Sprintf with user data — always pass a map[string]any of parameters as the second argument to Run/ExecuteReadcontext.WithTimeout) on every session/transaction to bound worst-case latencyneo4j.Config.MaxConnectionPoolSize and ConnectionAcquisitionTimeout for the expected concurrency; do not leave pool size unboundedresult.Collect(ctx) for small bounded results, streaming iteration (result.Next(ctx)) for large results — avoid materializing unbounded result sets in memoryThis is the primary safety layer for any natural-language-to-Cypher feature.
reader role (or neo4j.AccessModeRead on the transaction), never a writer-capable session$param placeholders — this also defends against Cypher injection from upstream LLM outputEXPLAIN gate: run EXPLAIN <query> first; reject on syntax/semantic errors before touching real data, and inspect the plan for scan operators that indicate a missing index or runaway cardinalityDETACH DELETE, DELETE, REMOVE, SET, CREATE, MERGE, CALL { ... } IN TRANSACTIONS, LOAD CSV, or any apoc.* write/refactor procedure — a read-only-role session is defense-in-depth, not a substitute for this checkLIMIT, and set a server-side query timeout for LLM-originated queries specifically (dbms.transaction.timeout or a per-query neo4j.WithTxTimeout)MERGE statements) alongside schema migrations so the graph can always be regenerated deterministically还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
中文简介正在准备中。当前显示原文说明。
Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile
中文简介正在准备中。当前显示原文说明。
Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation
中文简介正在准备中。当前显示原文说明。
Apache Airflow best practices for DAG authoring, testing, and production deployment
中文简介正在准备中。当前显示原文说明。
Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration
中文简介正在准备中。当前显示原文说明。
Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)
中文简介正在准备中。当前显示原文说明。