Skip to content
rush-dbPublic

About

Runnable examples for RushDB, the database for AI. 3.x/ is current; older folders target RushDB 2.x (legacy).

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

997 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RushDB examples

RushDB Logo

RushDB — the database for AI

One database for your records, their relationships, and search over them.

Runnable examples for RushDB. 3.x/ is current. The older folders at the repository root target RushDB 2.x (legacy): see RushDB 2.x (legacy) examples.

Quick start (RushDB 3.x)

Install and start RushDB with one of:

curl -fsSL https://rushdb.com/install.sh | sh && rushdb up
brew install rush-db/tap/rushdb
docker run -p 3000:3000 -e RUSHDB_TOKEN=change-me rushdb/rushdb:3

Then run an example against it:

git clone https://github.com/rush-db/examples.git && cd examples
export RUSHDB_URL=http://127.0.0.1:3000
export RUSHDB_TOKEN=change-me      # the token RushDB runs with; `rushdb up` uses local-token
cd 3.x/company-brain && ./run.sh   # or any other folder under 3.x/

Each example seeds a small dataset and runs every query from its article over the HTTP protocol with curl and jq. Some also use pgwire, Bolt, gRPC or MCP, or need Python, Node.js, psql or openssl: each folder's README lists its prerequisites and engine flags. Run each example on an empty node, since several share label names. See 3.x/README.md for details.

RushDB 3.x examples

Example What it shows Article
agent-memory-provenance Agent memories as linked records with their source turn: scoped recall, supersession, vector recall with and without a scope filter, and deleting one user's memories. rushdb.com/blog/ai-agent-memory-database
analytics-trace An inspectable analytics answer: a read-only capability token, catalog evidence per filter value, a stored trace, and a rerun that tells "same result" from "data moved". rushdb.com/blog/inspectable-analytics-agent
attack-paths Identity attack paths: transitive group membership, merged scanner and EDR host records, and incident blast radius. rushdb.com/blog/graph-database-cybersecurity
beneficial-ownership Ownership chains with a percent on each link, sanctions exposure through ownership layers, circular ownership, and effective stake computed in jq. rushdb.com/blog/graph-database-financial-services
catalog-grounding-check A client-side check for agent-written SQL (Python + sqlglot): unknown tables, columns and stored values are rejected with the stored alternatives. rushdb.com/blog/grounding-analytics-agents
clinical-ontology A concept hierarchy with coded diagnoses: cohort queries over ontology hops and compound to gene to disease paths. rushdb.com/blog/graph-database-healthcare-life-sciences
company-brain HR-, Notion-, Jira- and Slack-style JSON linked on matching keys, queried with SearchQuery and SQL, BM25 search, and a data-access policy. rushdb.com/blog/build-company-brain-rushdb
customer-360 CRM, billing, support and product events as linked records: value overlap, filtered schema, facets and a SQL join over relationships. rushdb.com/blog/customer-360-analytics-graph
entity-resolution Two exports of the same companies matched on exact stored values: normalized tax ids, name collisions with conflicting ids, and records with no key. rushdb.com/blog/entity-resolution-property-graph
equivalent-relations Two sources naming the same relation differently: name similarity, value overlap, similar-value search, and merging the relationship types. rushdb.com/blog/semantically-equivalent-relations-knowledge-graph
filtered-vector-search Post-filter vs pre-filter on a tiny vector set where every score is readable, filters across relationships, and a recall measurement script. rushdb.com/blog/filtered-vector-search
five-languages-one-dataset One shop dataset, four questions, each asked in SQL, openCypher, GQL, SQL/PGQ, Gremlin and SearchQuery. rushdb.com/blog/gremlin-cypher-gql-sql-pgq-compared
fraud-rings Shared-identifier rings, circular money flows with $cycle, and why direction matters. rushdb.com/blog/best-graph-database-fraud-detection
hybrid-rrf-dbsf BM25 and vector legs over 20 help-center articles fused with RRF and DBSF, with both fusions recomputed by hand in jq. rushdb.com/blog/hybrid-search-rrf-vs-dbsf
json-to-graph A nested helpdesk export imported as-is and then reshaped: what the catalog shows before and after, and the queries each shape allows. rushdb.com/blog/json-to-graph-database
kg-predicate-completeness Predicate completeness per label, conditional completeness under a filter, and completeness across linked records. rushdb.com/blog/predicate-completeness-knowledge-graph
mcp-tool-budget Token counts for the RushDB MCP server: instructions, every tool definition and ten tool results, measured over stdio. rushdb.com/blog/mcp-database-tools-design
neo4j-driver-bolt The official Neo4j Python driver against RushDB's Bolt listener: what works, what is refused, and the errors you get. rushdb.com/blog/neo4j-driver-bolt-compatibility
pgwire-compatibility About 30 psql probes over the PostgreSQL wire listener, with the SQLSTATE of every failure. rushdb.com/blog/postgres-wire-protocol-compatibility
psql-over-pgwire A psql session: information_schema, SQL over label tables, traversal through rushdb_edges joins, bound parameters and session guards. rushdb.com/blog/query-graph-database-with-sql
schema-introspection-loop The agent loop: read the shape, filter on stored values, read the shape of what matched, then ask the precise SQL question. rushdb.com/blog/trustworthy-agentic-data-analytics
schema-tokens One BIRD database described nine ways, from DDL to RushDB's catalog, with the token cost of each. rushdb.com/blog/schema-tokens-for-agents
sql-pgq The PostgreSQL 19 docs' SQL/PGQ examples run against RushDB's read-only GRAPH_TABLE profile, plus the relational equivalent. rushdb.com/blog/sql-pgq-graph-queries-today
structured-recall-test Twelve count, sum, latest and filter questions over 107 agent memories, answered three ways. rushdb.com/blog/structured-recall-test
supply-chain-tier-n Tier-N supplier exposure with hops, recall tracing, bill-of-materials where-used and single-source dependencies. rushdb.com/blog/best-graph-database-supply-chain
tenant-isolation Two tenants on one multitenant engine and every attempt to cross between them: queries, tokens, prompt injection and data-access policies. rushdb.com/blog/multi-tenant-database-design-ai
type-drift Two extractor versions writing the same property as a number and as text: both stored, one typed definition each, and how to query across them. rushdb.com/blog/type-drift-agent-pipelines
wire-protocols One question asked over HTTP, gRPC, pgwire and Bolt, returning the same count, with optional loopback timings. rushdb.com/blog/one-binary-five-protocols

RushDB 2.x (legacy) examples

RushDB 2.x (legacy, Neo4j-based). Security fixes only until 2027-10-28. New projects: use RushDB 3, a standalone Rust database for AI.

Every folder at the repository root, outside 3.x/, was written for RushDB 2.x: the Neo4j-based TypeScript stack (the 2.x branch of rush-db/rushdb and the rushdb/platform image). They were written against the 1.x and 2.x SDKs and the 2.x REST API, and are kept as they are for existing 2.x projects. To run one, install the 2.x SDK (npm i @rushdb/javascript-sdk@2 or pip install "rushdb<3").

Group Folders What is there
Framework starters express-rushdb-sdk, express-books-rag, nextjs-cms, nextjs-ecommerce-example, nextjs-filters-rushdb-sdk, nextjs-simple-waitlist, nuxt-auth-rushdb-sdk, vite-react-useForm, python-simple-rag, python-books-rag, python-import-csv, jupyter-examples Small apps with the JavaScript and Python SDKs: an Express REST API, Next.js CMS, e-commerce, filters and waitlist apps, Nuxt auth, a React form, RAG APIs in Python and Express, CSV import and a Jupyter notebook.
Tutorials 126 folders ending in -tutorial Step-by-step Python scripts (a few in TypeScript), one per topic: ingestion patterns, relationship modeling, RAG retrieval and reranking, agent memory, multi-agent coordination, conversation state and graph traversal.
Use cases 55 folders ending in -usecase Single-scenario Python demos (a few in TypeScript): production RAG pipelines, citation tracking, semantic caching, code search, research assistants and similar applications.

Each folder's README has its own setup steps.

Running RushDB 2.x

Self-host the 2.x image against your own Neo4j instance:

docker run -p 3000:3000 \
  --name rushdb \
  -e NEO4J_URL='neo4j+s://your-instance.neo4j.io' \
  -e NEO4J_USERNAME='neo4j' \
  -e NEO4J_PASSWORD='password' \
  rushdb/platform:2.13.3

Self-hosting 2.x requires Neo4j 2026.01.4 or later with the APOC plugin (the requirement stated in the 2.x README).

Getting help

About

Runnable examples for RushDB, the database for AI. 3.x/ is current; older folders target RushDB 2.x (legacy).

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages