# Use cases

Canonical URL: https://rushdb.com/use-cases

Each use case is the same engine used a different way: records and links written as data arrives, a catalog an agent can read before it queries, and search, traversal and aggregation in one request.

## Agent memory

URL: https://rushdb.com/use-cases#memory

Agents that remember, and can show where a memory came from. Each memory is a record linked to the chat turn that produced it, and recall returns that turn with the memory. Plain fields for user, agent and session keep one user’s memories out of another’s results.

An agent that forgets between sessions repeats questions; one that remembers in an opaque store can’t say where a memory came from. Memory needs to be data: scoped, queryable and traceable to the turn that produced it.

How it works:

- Store turns, facts and decisions as records, scoped by user, agent or session with ordinary fields.
- Link each fact to the message it came from, so recall can return its source.
- Recall with hybrid search under a filter, then follow links for context.
- The agent reads the catalog first, so it queries labels and fields that exist.

Tutorials:

- Agent memory overview: https://docs.rushdb.com/learn/agent-memory
- RushDB as a memory layer: facts, episodes, references: https://docs.rushdb.com/learn/tutorials/agent-memory/memory-layer
- Episodic memory for multi-step agents: https://docs.rushdb.com/learn/tutorials/agent-memory/episodic-memory
- Building team memory: https://docs.rushdb.com/learn/tutorials/agent-memory/building-team-memory

## Company brain & RAG

URL: https://rushdb.com/use-cases#company

Answers that span your docs, CRM, support, billing and code, with the record behind every fact. Each source lands in its own shape and is linked on keys it already shares, like an email or a Stripe customer ID. The agent reads the catalog first, so it knows which source holds what before it asks.

The answer to “why did this account churn?” is spread across docs, CRM, support, billing and code. Each source has its own shape and IDs, and vector-only retrieval returns similar text from the wrong version or tenant without showing what surrounds it.

How it works:

- Ingest each source as it comes: docs, webhooks, exports, events. No shared schema up front.
- Link records across sources on matching keys (email, account ID) with one command.
- Filter to the right version, product or account first, then rank by vector and BM25 together.
- The catalog shows what each source contributed, so an agent can plan a cross-source query.
- Every fact in the answer cites the record it came from.

Tutorials:

- Multi-source RAG: https://docs.rushdb.com/learn/tutorials/ai-and-rag/rag-multi-source
- GraphRAG: https://docs.rushdb.com/learn/tutorials/ai-and-rag/graphrag
- Hybrid retrieval: filters plus semantic search: https://docs.rushdb.com/learn/tutorials/ai-and-rag/hybrid-retrieval
- Webhook ingestion from Clay, Supabase, Superglue: https://docs.rushdb.com/learn/tutorials/working-with-data/third-party-webhook-ingestion
- Customer 360: https://docs.rushdb.com/learn/tutorials/graph-modeling/customer-360

## AI search & assistants

URL: https://rushdb.com/use-cases#apps

Search and assistants on the records your app already writes. Declare text and vector indexes once and the database keeps them current as your app writes, so there is no separate search engine to sync. Filters, facets and ranking run in one query.

Search, filters and an assistant usually mean a second datastore and a sync job. Facet counts drift, and the assistant can’t see what the filters see.

How it works:

- Search the records your app writes. Text and vector indexes live in the database and stay current, so there is no external index to sync.
- Facet counts come from the catalog scoped to the current filter, and they are exact.
- Hybrid search ranks results under the same filter the facets use.
- The SDKs, the MCP server and SQL clients all read the same data.

Tutorials:

- Search UX patterns: https://docs.rushdb.com/learn/tutorials/search-and-queries/search-ux-patterns
- Discovery queries: https://docs.rushdb.com/learn/tutorials/search-and-queries/discovery-queries
- Semantic search for multi-tenant products: https://docs.rushdb.com/learn/tutorials/ai-and-rag/semantic-search-multitenant
- Building a graph-backed API layer: https://docs.rushdb.com/learn/tutorials/working-with-data/graph-backed-api

## Analytics

URL: https://rushdb.com/use-cases#analytics

Questions about your data, answered by a read-only query you can inspect. Before writing SQL, the agent reads which labels and fields exist and how each value is spelled in the data. Every answer ships with its read-only query, which anyone can rerun to check the number.

Text-to-SQL fails on invented column names and on values that don’t exist. And an answer is only useful if someone can check the query that produced it.

How it works:

- The agent reads labels, fields, types and value counts before writing a query.
- It writes SQL, Cypher or a SearchQuery aggregation against fields that exist.
- Read-only credentials keep it to SELECTs; every answer shows its query.
- BI tools connect over the PostgreSQL wire protocol for the same numbers.

Tutorials:

- Agent-safe query planning: https://docs.rushdb.com/learn/tutorials/agent-memory/agent-safe-query-planning
- Detecting fraud rings: https://docs.rushdb.com/learn/tutorials/graph-modeling/fraud-rings
- Supply chain traceability: https://docs.rushdb.com/learn/tutorials/use-cases/supply-chain-traceability
- Temporal graphs: https://docs.rushdb.com/learn/tutorials/graph-modeling/temporal-graphs

## Where RushDB is the wrong tool

- Pure transactional workloads (ledgers, inventory): use PostgreSQL, CockroachDB
- Time series at very high write rates: use InfluxDB, TimescaleDB
- Blob and file storage: use S3 plus a metadata index
- Flat, stable CRUD with no search: use Any relational database
- Warehouse analytics over hundreds of millions of rows: use BigQuery, Redshift, DuckDB

Last updated: 2026-10-28
