ArcFlow
Company
Managed Services
Markets
  • News
  • LOG IN
  • GET STARTED

OZ brings Visual Intelligence to physical venues, a managed edge layer that lets real-world environments see, understand, and act in real time.

Talk to us

ArcFlow

  • World Models
  • Sensors

Managed Services

  • OZ VI Venue 1
  • Case Studies

Markets

  • Sports
  • Broadcasting
  • Robotics

Company

  • About
  • Technology
  • Careers
  • Contact

Ready to see it live?

Talk to the OZ team about deploying at your venues, from a single pilot match to a full regional rollout.

Schedule a deployment review

© 2026 OZ. All rights reserved.

LinkedIn
ArcFlow Docs
Start
  • Quickstart
  • Installation
  • Bindings
  • Platforms
  • Get Started
  • Cookbook
Concepts
  • World Model
  • Graph Model
  • Evidence Model
  • Observations
  • Confidence & Provenance
  • Proof Artifacts & Gates
  • SQL vs GQL
  • Graph Patterns
  • Parameters
  • Query Results
  • Persistence & WAL
  • Snapshot-Pinned Reads
  • Error Handling
  • Execution Models
  • Causal Edges
  • Adapter Discipline
  • Time Decay
  • Layers
  • 1. World Store
  • 1a. World Store · Smart Reader
  • 2. Perception Lake
  • 3. World Graph
  • 4. Query Engine
  • 5. Live Surface
  • 6. Event Bus
  • 7. Behavior Engine
  • 8. Algorithm Library
  • Virtual Computed Columns
  • Threading Model
  • Typed ID Contract
WorldCypher
  • Overview
  • Execution Options
  • Statements
  • MATCH
  • WHERE
  • RETURN
  • OPTIONAL MATCH
  • CREATE
  • SET
  • MERGE
  • DELETE
  • REMOVE
  • Composition
  • WITH
  • UNION
  • UNWIND
  • CASE
  • Schema
  • Schema Overview
  • Indexes
  • Constraints
  • Functions
  • Built-in Functions
  • Aggregations
  • Procedures
  • Shortest Path
  • EXPLAIN
  • PROFILE
  • Temporal Queriesfacet
  • Spatial Queriesfacet
  • Algorithmsfacet
  • Triggers
Capabilities
  • Live Queries
  • Vector Search
  • Trusted RAG
  • Spatial Knowledge
  • Temporal
  • Behavior Graphs
  • Graph Algorithms
  • Skills
  • CREATE SKILL
  • PROCESS NODE
  • REPROCESS EDGES
  • Sync
  • Programs
  • GPU Acceleration
  • Agent-Native
  • MCP Server
  • Event Sourcing
  • Intent Relay
  • Event Bus
Use Cases
  • Agent Tooling
  • Trusted RAG
  • Knowledge Management
  • Behavior Graphs
  • Autonomous Systems
  • Physical AI
  • Digital Twins
  • Robotics & Perception
  • Sports Analytics
  • Grounded Neural Objects
  • Fraud Detection
Walkthroughs
    Guides
  • Agent Integration
  • Building a World Model
  • Modeling a Social Graph
  • Build a RAG Pipeline
  • Using Skills
  • Behavior Graphs
  • Swarm & Multi-Agent
  • Fleet Coordination
  • Migrate from Cypher / Neo4j
  • From SQL to GQL
  • Filesystem Workspace
  • Data Quality
  • Code Intelligence
  • Scale Patterns
  • v0.7 → v0.8 Lakehouse Fast-Path
  • Tutorials
  • Knowledge Graph
  • Entity Linking
  • Vector Search
  • Graph Algorithms
  • Recipes
  • CRUD
  • Multi-MATCH
  • MERGE (Upsert)
  • Full-Text Search
  • Batch Projection
  • Multi-Source Observation
  • Sports Analytics
Operations
  • CLI
  • REPL Commands
  • Snapshot & Restore
  • Filesystem Projection
  • Plugin Management
  • Agent Governance
  • Server Modes & PG Wire
  • Persistence (ops)
  • Import & Export
  • Deployment
  • Deployment Modes
  • Daemon (UDS)
  • Why not Docker
  • Architecture
  • Engine Architecture
  • Cloud Architecture
  • Sync Protocol (Deep Dive)
  • World Graph Substrate (Preview)
Reference
  • TypeScript API
  • Glossary
  • Naming & Domain Map
  • Data Types
  • Operators
  • Error Codes
  • GQL Reference
  • Known Issues
  • Versioning
  • Licensing
  • Conformance
  • GQL Conformance
  • openCypher TCK
  • Extension Regressions
GQL Reference
    Conformance
  • Conformance Dashboard
  • openCypher TCK Results
  • Extension Regressions
  • Features
  • MATCH Basic
  • CREATE Nodes Edges
  • SET REMOVE Properties
  • DELETE Detach DELETE
  • RETURN WITH WHERE
  • Order BY Limit Skip
  • Order BY Nulls First Last
  • UNWIND
  • Aggregate Functions
  • OPTIONAL MATCH
  • Variable Length Paths
  • Label OR AND NOT Expressions
  • Label Wildcard
  • Quantified Path Sugar
  • Path Modes Walk Trail Simple Acyclic
  • Shortest Path Variants
  • IS Labeled Predicate
  • Element ID Function
  • IS Type Predicate
  • Binary Literals
  • Line Comments Solidus
  • Line Comments Minus
  • GQLSTATUS Result Codes
  • GQL Error Code Mapping
  • Transaction Control Syntax
  • SET Session
  • Conditional Execution WHEN THEN ELSE
  • RETURN NEXT Pipeline
  • Primary Key Constraint
  • Unique Constraint
  • Deterministic MERGE Via PK
  • Undirected Edge MATCH
  • Cast Type Conversion
  • GQL Directories
  • Multiple Labels Per Node
  • GQL Flagger
  • NEXT Linear Composition
  • Cardinality Function
  • INT64 BIGINT Type Names
  • FLOAT64 Double Type Names
  • Log10 Log2 Functions
  • Trim Leading Trailing Both
  • FILTER Clause
  • LET Statement
  • Group BY Explicit
  • EXCEPT SET Operations
  • INTERSECT SET Operations
  • ALL Different Predicate
  • Same Predicate
  • Property Exists Function
  • Path Variable Binding
  • USE Graph Clause
  • FOR IN List
  • Typed Temporal Literals
  • Session SET Value Params
  • Typed List Annotations
  • arcflow.cosine() function
  • arcflow.embed() function
  • arcflow.similar() procedure
  • arcflow.graphrag() procedure
  • ArcFlow Extensions
  • LIVE Queries
  • Triggered Write-Back Views
  • Evidence Algebra
  • Relationship Skills
  • AI Function Namespace
  • Graph Embedding Algorithms
  • ASOF JOIN
  • Durable Workflows
  • Incremental Z-Set Engine
  • GPU GraphBLAS
  • Triggers
  • HNSW Vector Index
  • Extensions Moat

Tutorial: Vector Search

Embeddings are first-class node properties in ArcFlow — stored in the world model alongside confidence scores and relationships, searchable with the same GQL used for everything else.

Overview#

ArcFlow includes a built-in vector index. You can:

  1. Store embeddings as node properties
  2. Create a vector index
  3. Search for nearest neighbors by similarity

No external vector database needed.

1. Store embeddings#

import { openInMemory } from '@ozinc/arcflow'
 
const db = openInMemory()
 
// Create nodes with embedding properties
db.mutate("CREATE (d:Document {title: 'AI Introduction', embedding: '[0.1, 0.2, 0.3, 0.4, 0.5]'})")
db.mutate("CREATE (d:Document {title: 'Machine Learning', embedding: '[0.15, 0.22, 0.28, 0.42, 0.48]'})")
db.mutate("CREATE (d:Document {title: 'Database Systems', embedding: '[0.8, 0.1, 0.05, 0.02, 0.03]'})")

2. Create a vector index#

db.mutate(
  "CREATE VECTOR INDEX doc_search FOR (n:Document) ON (n.embedding) OPTIONS {dimensions: 5, similarity: 'cosine'}"
)

Options:

  • dimensions — must match your embedding size (e.g., 1536, 768, or 384 depending on your model)
  • similarity — 'cosine' (recommended) or 'euclidean'

3. Search by similarity#

const queryVector = [0.12, 0.21, 0.29, 0.41, 0.49]  // From your embedding model
 
const results = db.query(
  "CALL algo.vectorSearch('doc_search', $vector, $k)",
  { vector: JSON.stringify(queryVector), k: 5 }
)
 
for (const row of results.rows) {
  console.log(row.get('title'), row.get('score'))
}
// "Machine Learning" 0.99
// "AI Introduction" 0.97
// "Database Systems" 0.42

4. Combine vector search with graph traversal#

The real power: use vector similarity to find a starting point, then traverse the graph for context.

// Find similar documents, then get their authors and related topics
const similar = db.query(
  "CALL algo.vectorSearch('doc_search', $vector, 3)",
  { vector: JSON.stringify(queryVector) }
)
 
for (const row of similar.rows) {
  const docTitle = row.get('title')
 
  // Traverse from each result
  const context = db.query(
    "MATCH (d:Document {title: $title})-[:AUTHORED_BY]->(a:Person) RETURN a.name",
    { title: String(docTitle) }
  )
  console.log(`${docTitle} by ${context.rows.map(r => r.get('name')).join(', ')}`)
}

5. GraphRAG pattern#

Use the built-in GraphRAG procedure for retrieval-augmented generation:

const context = db.query("CALL algo.graphRAG()")
// Returns graph context optimized for LLM consumption

Full-text search alternative#

For keyword-based search (no embeddings needed):

// Create full-text index
db.mutate("CREATE FULLTEXT INDEX doc_text FOR (n:Document) ON (n.title)")
 
// Search with BM25 scoring
const results = db.query("CALL db.index.fulltext.queryNodes('doc_text', 'machine learning')")

Hybrid search#

Combine vector similarity with full-text search:

const results = db.query(
  "CALL algo.hybridSearch()",
  // Combines vector and keyword signals
)

See Also#

  • Vector Search — vector index setup, hybrid search, and configuration reference
  • Trusted RAG — confidence-filtered retrieval built on vector + graph search
  • Graph Algorithms — combine vector search with PageRank for importance-weighted results
  • GPU Acceleration — GPU-accelerated ANN search at scale
Try it
Open ↗⌘↵ to run
Loading engine…
← PreviousEntity LinkingNext →Graph Algorithms