schemas/edge.schema.json aktualisiert
Some checks failed
Deploy mindnet to llm-node / deploy (push) Failing after 2s
Some checks failed
Deploy mindnet to llm-node / deploy (push) Failing after 2s
This commit is contained in:
parent
8f342ea2d3
commit
62d8299480
|
|
@ -2,15 +2,30 @@
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "mindnet_edge",
|
"title": "mindnet_edge",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["src_id", "dst_id", "edge_type", "scope"],
|
"description": "Edge-Payload (Qdrant). Unterstützt Legacy (edge_type/src_id/dst_id) und neues Schema (kind/source_id/target_id/note_id/status).",
|
||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"src_id": {"type": "string"},
|
"scope": { "type": "string", "enum": ["note","chunk"] },
|
||||||
"dst_id": {"type": "string"},
|
|
||||||
"edge_type": {"type": "string"},
|
"edge_type": { "type": "string", "description": "Legacy: z. B. references/backlink/belongs_to/prev/next" },
|
||||||
"scope": {"type": "string", "enum": ["note","chunk"]},
|
"src_id": { "type": "string", "description": "Legacy: source_id" },
|
||||||
"weight": {"type": "number"},
|
"dst_id": { "type": "string", "description": "Legacy: target_id" },
|
||||||
"meta": {"type": "object"},
|
|
||||||
"created_at": {"type": "string"}
|
"kind": { "type": "string", "description": "Neu: z. B. references/backlink/belongs_to/prev/next" },
|
||||||
|
"source_id": { "type": "string" },
|
||||||
|
"target_id": { "type": "string" },
|
||||||
|
"note_id": { "type": "string", "description": "Owner-Note für diesen Edge (Filter/Purge)" },
|
||||||
|
"status": { "type": "string", "description": "optional, z. B. 'unresolved'" },
|
||||||
|
|
||||||
|
"weight": { "type": "number" },
|
||||||
|
"meta": { "type": "object" },
|
||||||
|
"created_at":{ "type": "string" }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"anyOf": [
|
||||||
|
{ "required": ["src_id", "dst_id", "edge_type", "scope"] },
|
||||||
|
{ "required": ["source_id", "target_id", "kind", "scope"] }
|
||||||
|
],
|
||||||
|
|
||||||
"additionalProperties": true
|
"additionalProperties": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user