dylanglenister commited on
Commit
75bec31
·
1 Parent(s): 9d090f9

FIX: Information_validator again.

Browse files

Forgot to wrap the whole thing in $jsonSchema

Files changed (1) hide show
  1. schemas/information_validator.json +83 -81
schemas/information_validator.json CHANGED
@@ -1,85 +1,87 @@
1
  {
2
- "bsonType": "object",
3
- "title": "Information validator",
4
- "required": [
5
- "chunk_id",
6
- "content",
7
- "embedding",
8
- "embedding_model",
9
- "embedding_dim",
10
- "metadata"
11
- ],
12
- "properties": {
13
- "chunk_id": {
14
- "bsonType": "string",
15
- "description": "'chunk_id' must be a string and is required."
16
- },
17
- "content": {
18
- "bsonType": "string",
19
- "description": "'content' must be a string and is required."
20
- },
21
- "embedding": {
22
- "bsonType": "array",
23
- "items": { "bsonType": "double" },
24
- "description": "'embedding' must be an array of floats and is required."
25
- },
26
- "embedding_model": {
27
- "bsonType": "string",
28
- "description": "'embedding_model' must be a string and is required."
29
- },
30
- "embedding_dim": {
31
- "bsonType": "int",
32
- "minimum": 1,
33
- "description": "'embedding_dim' must be an int greater than 1 and is required."
34
- },
35
- "metadata": {
36
- "bsonType": "object",
37
- "title": "Metadata validator",
38
- "required": [
39
- "parent_id",
40
- "source",
41
- "task",
42
- "sequence",
43
- "total_chunks",
44
- "content_type"
45
- ],
46
- "properties": {
47
- "parent_id": {
48
- "bsonType": "string",
49
- "description": "'parent_id' must be a string and is required."
50
- },
51
- "source": {
52
- "bsonType": "string",
53
- "description": "'source' must be a string and is required."
54
- },
55
- "task": {
56
- "bsonType": "string",
57
- "description": "'task' must be a string and is required."
58
- },
59
- "sequence": {
60
- "bsonType": "int",
61
- "description": "'sequence' must be an int and is required."
62
- },
63
- "total_chunks": {
64
- "bsonType": "int",
65
- "description": "'total_chunks' must be an int and is required."
66
- },
67
- "content_type": {
68
- "bsonType": "string",
69
- "description": "'content_type' must be a string and is required."
70
- },
71
- "related_chunks": {
72
- "bsonType": "array",
73
- "items": { "bsonType": "string" },
74
- "description": "'related_chunks' must be an array of strings and is optional."
75
- },
76
- "chunk_length": {
77
- "bsonType": "int",
78
- "description": "'chunk_length' must be an int and is optional."
79
- },
80
- "created_timestamp": {
81
- "bsonType": "date",
82
- "description": "'created_timestamp' must be a date and is optional."
 
 
83
  }
84
  }
85
  }
 
1
  {
2
+ "$jsonSchema": {
3
+ "bsonType": "object",
4
+ "title": "Information validator",
5
+ "required": [
6
+ "chunk_id",
7
+ "content",
8
+ "embedding",
9
+ "embedding_model",
10
+ "embedding_dim",
11
+ "metadata"
12
+ ],
13
+ "properties": {
14
+ "chunk_id": {
15
+ "bsonType": "string",
16
+ "description": "'chunk_id' must be a string and is required."
17
+ },
18
+ "content": {
19
+ "bsonType": "string",
20
+ "description": "'content' must be a string and is required."
21
+ },
22
+ "embedding": {
23
+ "bsonType": "array",
24
+ "items": { "bsonType": "double" },
25
+ "description": "'embedding' must be an array of floats and is required."
26
+ },
27
+ "embedding_model": {
28
+ "bsonType": "string",
29
+ "description": "'embedding_model' must be a string and is required."
30
+ },
31
+ "embedding_dim": {
32
+ "bsonType": "int",
33
+ "minimum": 1,
34
+ "description": "'embedding_dim' must be an int greater than 1 and is required."
35
+ },
36
+ "metadata": {
37
+ "bsonType": "object",
38
+ "title": "Metadata validator",
39
+ "required": [
40
+ "parent_id",
41
+ "source",
42
+ "task",
43
+ "sequence",
44
+ "total_chunks",
45
+ "content_type"
46
+ ],
47
+ "properties": {
48
+ "parent_id": {
49
+ "bsonType": "string",
50
+ "description": "'parent_id' must be a string and is required."
51
+ },
52
+ "source": {
53
+ "bsonType": "string",
54
+ "description": "'source' must be a string and is required."
55
+ },
56
+ "task": {
57
+ "bsonType": "string",
58
+ "description": "'task' must be a string and is required."
59
+ },
60
+ "sequence": {
61
+ "bsonType": "int",
62
+ "description": "'sequence' must be an int and is required."
63
+ },
64
+ "total_chunks": {
65
+ "bsonType": "int",
66
+ "description": "'total_chunks' must be an int and is required."
67
+ },
68
+ "content_type": {
69
+ "bsonType": "string",
70
+ "description": "'content_type' must be a string and is required."
71
+ },
72
+ "related_chunks": {
73
+ "bsonType": "array",
74
+ "items": { "bsonType": "string" },
75
+ "description": "'related_chunks' must be an array of strings and is optional."
76
+ },
77
+ "chunk_length": {
78
+ "bsonType": "int",
79
+ "description": "'chunk_length' must be an int and is optional."
80
+ },
81
+ "created_timestamp": {
82
+ "bsonType": "date",
83
+ "description": "'created_timestamp' must be a date and is optional."
84
+ }
85
  }
86
  }
87
  }