131 lines
3.7 KiB
JSON
131 lines
3.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "microDAO Node-2 Memory Schema",
|
|
"description": "Schema for local memory architecture of microDAO Node-2",
|
|
"type": "object",
|
|
"properties": {
|
|
"microdao_id": {
|
|
"type": "string",
|
|
"pattern": "^microdao-[a-z0-9-]+$",
|
|
"description": "Unique microDAO identifier"
|
|
},
|
|
"memory_layers": {
|
|
"type": "object",
|
|
"properties": {
|
|
"vector_memory": {
|
|
"type": "object",
|
|
"properties": {
|
|
"qdrant": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {"type": "string"},
|
|
"collections": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string"},
|
|
"dimension": {"type": "integer"},
|
|
"distance": {"type": "string", "enum": ["Cosine", "Euclidean", "Dot"]}
|
|
}
|
|
}
|
|
},
|
|
"use_case": {
|
|
"type": "string",
|
|
"description": "Fast RAG for local agents"
|
|
}
|
|
}
|
|
},
|
|
"milvus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {"type": "string"},
|
|
"collections": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string"},
|
|
"dimension": {"type": "integer"},
|
|
"index_type": {"type": "string"}
|
|
}
|
|
}
|
|
},
|
|
"use_case": {
|
|
"type": "string",
|
|
"description": "Heavy vector indexing for large memory"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"graph_memory": {
|
|
"type": "object",
|
|
"properties": {
|
|
"neo4j": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {"type": "string"},
|
|
"database": {"type": "string"},
|
|
"use_case": {
|
|
"type": "string",
|
|
"description": "Relations between agents, tasks, data, tokens"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"event_store": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {"type": "string", "enum": ["jetstream", "duckdb"]},
|
|
"path": {"type": "string"},
|
|
"use_case": {
|
|
"type": "string",
|
|
"description": "Event history and audit trail"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rag_router": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {"type": "boolean"},
|
|
"routing_rules": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"condition": {"type": "string"},
|
|
"target": {
|
|
"type": "string",
|
|
"enum": ["local.memory.qdrant", "local.memory.milvus", "local.graph.neo4j", "global.memory"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sync_policy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {"type": "boolean"},
|
|
"sync_target": {
|
|
"type": "string",
|
|
"description": "Node-1 DAARION Core"
|
|
},
|
|
"collections_to_sync": {
|
|
"type": "array",
|
|
"items": {"type": "string"}
|
|
},
|
|
"sync_interval_seconds": {"type": "integer"}
|
|
}
|
|
}
|
|
},
|
|
"required": ["microdao_id", "memory_layers"]
|
|
}
|
|
|
|
|
|
|