Triples
A triple is the fundamental unit of knowledge in Neode. It represents a single fact as three parts:| Component | Description | Example |
|---|---|---|
| Subject | The entity the fact is about | ”Tesla” |
| Predicate | The relationship or property | ”founded_by” |
| Object | The value or related entity | ”Elon Musk” |
Object Types
Objects can be one of two types:Entity
Another entity that can have its own triples. Use for people, companies, places, concepts.
Literal
A value like a date, number, or text. Use for attributes and properties.
Confidence Scores
Each triple has a confidence score (0-1) indicating reliability:0.9-1.0- Verified facts from authoritative sources0.7-0.9- High confidence from reliable sources0.5-0.7- Moderate confidence, may need verification<0.5- Low confidence, treat as uncertain
Sources
Triples can include a source URL for provenance tracking:Entities
An entity represents a distinct thing in your knowledge graph - a person, company, place, concept, or any noun that can have facts about it.Automatic Creation
Entities are automatically created when you store triples. When you create a triple with subject “Tesla”, Neode:- Checks if an entity named “Tesla” exists in your index
- Creates a new entity if not found
- Links the triple to the entity via
subject_entity_id
object_type: "entity".
Entity Disambiguation
Within an index, entity names are disambiguated automatically. If you store triples about “Apple” (the company) and “Apple” (the fruit), they’ll be treated as the same entity unless in different indexes.Entity Properties
Entities can have:| Property | Description |
|---|---|
name | The canonical name |
description | A text description (can be AI-generated) |
avatar_url | An image URL for display |
Indexes
An index is a namespace for organizing entities and their triples. Think of it as a separate knowledge base or project.Why Use Indexes?
- Separation: Keep different projects isolated
- Disambiguation: “Apple” in your tech index is different from “Apple” in your food index
- Access Control: Indexes can be public or private
- Organization: Group related knowledge together
Public vs Private
| Type | Visibility | Use Case |
|---|---|---|
| Private | Only you can access | Personal projects, sensitive data |
| Public | Visible in Explore | Shared knowledge, community resources |
Creating an Index
Graphs
A graph groups related triples together within an index. While indexes separate different knowledge domains, graphs organize triples within a domain.Use Cases for Graphs
- Sessions: Group triples generated in one session
- Sources: Group triples extracted from the same document
- Topics: Group triples about a specific topic
- Versions: Track different versions of knowledge
Example
Data Model Summary
Ready to Start?
Follow the quickstart guide to create your first knowledge graph.