Data Model¶
Everything Odin does operates on a directed, labeled knowledge graph: entities joined by typed relationships. Before the pipeline pages make sense, it helps to pin down what Odin expects from that graph and the handful of terms used throughout these docs.
The vocabulary¶
An entity is a thing in your domain, addressed by an ID; a relationship is a typed, directed edge between two of them. The label on that edge is its relation type. String a few edges together and you have a path, and the entity you start a path from is a seed.
| Term | Meaning | Example |
|---|---|---|
| Entity (node) | A thing in your domain, addressed by an ID | entity/claim_123, provider/456 |
| Relationship (edge) | A typed, directed connection between two entities | claim_123 →billed_by→ provider_456 |
| Relation type | The label on an edge | billed_by, has_diagnosis, treated_by |
| Path | An ordered sequence of entities joined by edges | A → B → C |
| Seed | An entity you start exploration from | ["entity/claim_123"] |
Node IDs are opaque strings. In ArangoDB they follow the collection/key
convention (CaseRecords/claim_123, say), and Odin passes them straight
through without interpreting them.
What edges can carry¶
Odin requires Arango endpoints and an explicitly mapped relation field. Optional
metadata influences retrieval only through its mapping; a raw field named
created_at, weight, or confidence is not automatically interpreted.
| Mapping | Used for |
|---|---|
_from / _to |
Canonical full document IDs and edge direction |
relation_field |
Exact, non-empty relation label |
edge_weight_field |
Structural weight; absent mapping means uniform weight |
edge_timestamp_field |
Canonical created_at metadata for aggregation |
edge_valid_from_field / edge_valid_to_field |
Explicit validity metadata |
edge_status_field |
Status metadata; allowed_edge_statuses explicitly enables filtering |
edge_provenance_fields / provenance_edge_collection |
Mapped source references |
Retrieved edge confidence comes from the configured confidence provider. The full
raw assertion is retained under provenance.assertion, independent of mapped
metadata. Every application field, including numeric embedding vectors, is
preserved. Callers apply model-input filtering at their tool boundary.
Communities scope the graph¶
A community is a named scope for exploration. On a large multi-tenant graph, it keeps retrieval focused on one tenant, dataset, or domain instead of the whole graph. You choose the behavior with community_mode:
# Global exploration across the whole graph (default)
engine = OdinEngine(
ArangoBackend(db, graph),
community_id="global", community_mode="none",
)
# Scoped to a single community
engine = OdinEngine(
ArangoBackend(db, graph),
community_id="medicare_claims", community_mode="mapping",
)
For the current Arango backend, NPLL training remains global even when retrieval is community-scoped. Retrieval communities share the same global training artifact.
What Odin does not need from you¶
Notably, there is a lot you do not have to prepare. There is no fixed Odin
schema or collection name: you declare the small Arango mapping once with
ArangoGraphConfig, and can inspect the rest with Schema
Introspection. There are no pre-computed
embeddings, because NPLL trains straight from the graph's edge structure. And
there is no query language to write on your side: you hand Odin entity IDs and
it handles the traversal.
The reference backend is ArangoDB, but the graph accessor is an interface. ArangoBackend is the only complete backend today. A JanusGraph accessor ships for retrieval only, and you can implement the backend contracts for other stores such as Neo4j. See Adapters for the accessor interface and Backend contracts for a full backend.
With the graph model in hand, the natural next step is how Odin ranks importance within it, Personalized PageRank, or the practical side of wiring up a database in Connecting ArangoDB.