Skip to content

Commit 89d9d32

Browse files
committed
add rag object
1 parent 020a880 commit 89d9d32

4 files changed

Lines changed: 40 additions & 3 deletions

File tree

v2/inference/deep_nested_fields.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@
8484
}
8585
}
8686
}
87-
}
87+
},
88+
"raw_text": null,
89+
"rag": null
8890
},
8991
"active_options": {
9092
"raw_text": false,

v2/inference/rag_matched.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"inference": {
3+
"id": "12345678-1234-1234-1234-123456789abc",
4+
"model": {
5+
"id": "test-model-id"
6+
},
7+
"file": {
8+
"name": "test-file-name.jpg",
9+
"alias": null,
10+
"page_count": 1,
11+
"mime_type": "image/jpeg"
12+
},
13+
"result": {
14+
"fields": {
15+
"field_simple": {
16+
"value": null,
17+
"confidence": null,
18+
"locations": []
19+
}
20+
},
21+
"raw_text": null,
22+
"rag": {
23+
"retrieved_document_id": "12345abc-1234-1234-1234-123456789abc"
24+
}
25+
},
26+
"active_options": {
27+
"raw_text": false,
28+
"rag": true,
29+
"polygon": false,
30+
"confidence": false
31+
}
32+
}
33+
}

v2/inference/raw_texts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"content": "A different content for the second page..."
2828
}
2929
]
30-
}
30+
},
31+
"rag": null
3132
},
3233
"active_options": {
3334
"raw_text": true,

v2/inference/standard_field_types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
]
132132
}
133133
},
134-
"raw_text": null
134+
"raw_text": null,
135+
"rag": null
135136
},
136137
"active_options": {
137138
"raw_text": true,

0 commit comments

Comments
 (0)