132 lines
2.3 KiB
JSON
132 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://ragcore.example.test/schemas/qdrant-payload-v1.json",
|
|
"title": "RAGCore Qdrant payload v1",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"workspace_id",
|
|
"space_id",
|
|
"document_id",
|
|
"document_version_id",
|
|
"chunk_id",
|
|
"source_id",
|
|
"status",
|
|
"content_type",
|
|
"language",
|
|
"trust_level",
|
|
"text",
|
|
"content_sha256",
|
|
"embedding_profile",
|
|
"chunk_profile"
|
|
],
|
|
"properties": {
|
|
"workspace_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"space_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"document_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"document_version_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"chunk_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"parent_chunk_id": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "uuid"
|
|
},
|
|
"source_id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"status": {
|
|
"const": "active"
|
|
},
|
|
"content_type": {
|
|
"type": "string",
|
|
"maxLength": 80
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"maxLength": 16
|
|
},
|
|
"trust_level": {
|
|
"enum": [
|
|
"trusted_internal",
|
|
"trusted_external",
|
|
"unverified",
|
|
"user_uploaded",
|
|
"internet"
|
|
]
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"maxLength": 500
|
|
},
|
|
"section_path": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"page_start": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"minimum": 1
|
|
},
|
|
"page_end": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"minimum": 1
|
|
},
|
|
"line_start": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"minimum": 1
|
|
},
|
|
"line_end": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"minimum": 1
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"content_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{64}$"
|
|
},
|
|
"embedding_profile": {
|
|
"type": "string"
|
|
},
|
|
"chunk_profile": {
|
|
"type": "string"
|
|
},
|
|
"published_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
}
|
|
}
|