Records
Facts, events, entities, decisions, and application state.
Context infrastructure
Agents, applications, and analytics need the same operational data, but most stacks split it across databases, caches, vector stores, graph logic, and synchronization pipelines.
Context is data plus the structure required to use it correctly. RushDB keeps records, properties, values, relationships, embeddings, and live schema together in one queryable context layer.
A precise definition
A useful context layer preserves the record, its actual fields and values, its connections, its semantic representation, and the live structure software needs to query it responsibly.
Facts, events, entities, decisions, and application state.
The fields that exist, their types, and the domains they contain.
Explicit connections and paths between operational records.
Chosen values indexed for retrieval by meaning.
A queryable description of labels, fields, values, and relationship paths.
Shared substrate
The differentiation is not three unrelated product modes. The same records, schema, values, relationships, and embeddings remain available to three kinds of software consumer.
Inspect structure, retrieve semantically, traverse relationships, and act on durable state.
Read, write, filter, transact, search, and render interfaces against current connected records.
Aggregate values, inspect change, and connect metrics to the operational evidence behind them.
One fixture · three consumers
This small checkout fixture makes the category concrete. One nested write creates operational records and explicit parent-child structure. Applications query it directly; agents can ask for it through Smart Search; analytical views aggregate the same EVENT records without a copied model.
01 · Create context
Upper-case nested keys become labels and preserve parent-child relationships. Property types and the schema surface emerge from the records that were actually written.
db.records.import_json({
"label": "ACCOUNT",
"data": {
"accountId": "acme-01",
"name": "Acme Corp",
"tier": "enterprise",
"FEATURE": [{
"featureId": "checkout",
"name": "Checkout",
"EVENT": [
{ "eventId": "evt-1", "type": "conversion", "value": 129, "channel": "organic", "timestamp": "2026-07-25T09:00:00Z" },
{ "eventId": "evt-2", "type": "conversion", "value": 89, "channel": "partner", "timestamp": "2026-07-26T10:00:00Z" }
],
"INCIDENT": [{
"incidentId": "inc-17",
"status": "open",
"severity": "high",
"summary": "Checkout requests are timing out."
}]
}]
}
})What to notice
02 · Application read
The application uses an ordinary SearchQuery: exact status filtering at the root and relationship traversal through FEATURE to ACCOUNT.
incidents = db.records.find({
'labels': ['INCIDENT'],
'where': {
'status': 'open',
'FEATURE': {
'ACCOUNT': {'accountId': 'acme-01'}
},
},
'limit': 20,
})What to notice
03 · Agent read
Smart Search uses the project schema, returns the generated SearchQuery and warnings, then exposes the same record result through the SDK envelope.
result = db.ai.search(
'Show open incidents connected to Acme Corp'
)
print(result.search_query)
print(result.warnings)
print(result.data)What to notice
| System | Primary job | Context-layer difference |
|---|---|---|
| Application database | Own operational records and transactions | Adds shared semantic, relational, schema-discovery, and analytical access where the workload needs them. |
| Vector store | Rank embeddings by similarity | Keeps searchable values attached to typed records, relationships, and live structure. |
| Memory framework | Help an agent store and recall context | Makes the same context usable by applications and operational queries, not only an agent runtime. |
| Warehouse | Historical analytical processing and BI | Keeps relationship-aware analysis close to current operational records rather than replacing the warehouse. |