Version 4.0 - Evolution 4: Advanced Context Service
const ws = new WebSocket('wss://datomverse.com/ws');
ws.onopen = () => {
// Assert a fact
ws.send(JSON.stringify({
type: 'assert',
id: 'req_1',
payload: {
entity_id: 'user_123',
attribute: 'name',
value: 'Alice'
}
}));
};
ws.onmessage = (event) => {
const response = JSON.parse(event.data);
console.log('Response:', response);
};
Store an immutable fact about an entity.
{
"type": "assert",
"id": "unique_id",
"payload": {
"entity_id": "entity_123",
"attribute": "attribute_name",
"value": "any JSON value"
}
}
Get AI-generated narrative from facts with intent understanding.
{
"type": "context",
"id": "unique_id",
"payload": {
"prompt": "What decisions have been made?",
"entity_id": "optional_filter",
"max_tokens": 500,
"stream": true
}
}
Find facts by meaning using AI embeddings.
{
"type": "semantic_search",
"id": "unique_id",
"payload": {
"query": "vacation planning",
"limit": 20
}
}
Query facts using pattern matching. Variables start with "?".
{
"type": "query",
"id": "unique_id",
"payload": {
"clauses": [
["?entity", "type", "user"],
["?entity", "status", "active"]
]
}
}
DatomVerse uses:
DatomVerse is open source and can run locally or on Cloudflare.