schemas/chunk.schema.json aktualisiert
Some checks failed
Deploy mindnet to llm-node / deploy (push) Failing after 2s

This commit is contained in:
Lars 2025-09-09 16:15:05 +02:00
parent 5d5de06290
commit 8f342ea2d3

View File

@ -2,37 +2,89 @@
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "mindnet_chunk", "title": "mindnet_chunk",
"type": "object", "type": "object",
"required": ["id", "note_id", "chunk_index", "type", "path", "token_count", "lang"], "description": "Chunk-Payload (Qdrant). Kompatibel mit Alt-Feldern und neuen Feldern für Export/Roundtrip.",
"required": ["id", "note_id", "chunk_index", "path"],
"properties": { "properties": {
"id": {"type": "string"}, "id": { "type": "string" },
"note_id": {"type": "string"}, "scope": { "type": "string", "enum": ["chunk"] },
"note_title": {"type": "string"}, "note_id": { "type": "string" },
"chunk_index": {"type": "integer"}, "note_title": { "type": "string" },
"char_start": {"type": "integer"}, "note_type": { "type": "string" },
"char_end": {"type": "integer"}, "note_status": { "type": "string" },
"token_count": {"type": "integer"}, "type": { "type": "string", "description": "Legacy: früherer Chunk-Typ; kann dem Note-Typ entsprechen" },
"type": {"type": "string"}, "area": { "type": "string" },
"area": {"type": "string"}, "project": { "type": "string" },
"project": {"type": "string"}, "tags": { "type": "array", "items": { "type": "string" } },
"tags": {"type": "array", "items": {"type": "string"}},
"section_title": {"type": "string"}, "note_path": { "type": "string" },
"section_path": {"type": "string"}, "path": { "type": "string" },
"lang": {"type": "string"},
"wikilinks": {"type": "array", "items": {"type": "string"}}, "chunk_index": { "type": "integer" },
"external_links": {"type": "array", "items": {"type": "string"}}, "section_title":{ "type": ["string","null"] },
"section_path": { "type": ["string","null"] },
"char_start": { "type": ["integer","null"] },
"char_end": { "type": ["integer","null"] },
"char_len": { "type": "integer" },
"token_count": { "type": "integer", "description": "Legacy: frühere Token-Zahl" },
"token_est": { "type": "integer", "description": "Neue grobe Token-Schätzung (≈ len(text)/4)" },
"neighbors": {
"type": "object",
"properties": {
"prev": { "type": ["string","null"] },
"next": { "type": ["string","null"] }
},
"additionalProperties": false
},
"text": { "type": "string" },
"text_sha256": { "type": "string", "pattern": "^sha256:[0-9a-fA-F]{64}$" },
"lang": { "type": "string" },
"wikilinks": { "type": "array", "items": { "type": "string" } },
"external_links": {
"type": "array",
"items": {
"anyOf": [
{ "type": "string" },
{
"type": "object",
"properties": {
"href": { "type": "string" },
"label": { "type": ["string","null"] }
},
"required": ["href"],
"additionalProperties": false
}
]
}
},
"references": { "references": {
"type": "array", "type": "array",
"items": {"type": "object", "properties": { "items": {
"target_id": {"type": "string"}, "type": "object",
"kind": {"type": "string"} "properties": {
}, "required": ["target_id", "kind"]} "target_id": { "type": "string" },
"kind": { "type": "string" }
},
"required": ["target_id","kind"],
"additionalProperties": true
}
}, },
"neighbors": {"type": "object", "properties": {
"prev": {"type": ["string","null"]}, "embed_model": { "type": "string" },
"next": {"type": ["string","null"]} "embed_dim": { "type": "integer" },
}}, "embed_version": { "type": "integer" },
"path": {"type": "string"},
"created_at": {"type": "string"} "created_at": { "type": "string" }
}, },
"allOf": [
{ "anyOf": [ { "required": ["token_count"] }, { "required": ["token_est"] } ] },
{ "anyOf": [ { "required": ["type"] }, { "required": ["note_type"] } ] }
],
"additionalProperties": true "additionalProperties": true
} }