@@ -14,11 +14,11 @@ const optionChoices: FieldChoices = [
1414export const inferenceCreateFields = defineInputFields ( [
1515 {
1616 key : "modelId" ,
17- label : "Model ID " ,
17+ label : "Model to Use " ,
1818 required : true ,
1919 type : "string" ,
20- dynamic : "search_models .id.name" ,
21- helpText : "Start typing to search a model by name.. ." ,
20+ dynamic : "v2_search_models .id.name" ,
21+ helpText : "The model to use ." ,
2222 } ,
2323 {
2424 key : "file" ,
@@ -40,44 +40,44 @@ export const inferenceCreateFields = defineInputFields([
4040 choices : optionChoices ,
4141 default : optionDefault ,
4242 helpText :
43- "Calculate confidence scores for values, and fill the confidence attribute of fields." +
44- " Useful for automation." ,
43+ "Enable automated workflows by enhancing model accuracy and measuring field confidence." ,
4544 } ,
4645 {
4746 key : "polygon" ,
48- label : "Enable Confidence Scores " ,
47+ label : "Enable Polygons (Bounding Boxes) " ,
4948 type : "string" ,
5049 choices : optionChoices ,
5150 default : optionDefault ,
5251 helpText :
53- "Calculate bounding box polygons for all fields and fill the `locations` attribute ." ,
52+ "Add the polygon coordinates of each extracted field to the API response ." ,
5453 } ,
5554 {
5655 key : "rag" ,
57- label : "Enable Confidence Scores " ,
56+ label : "Enable RAG (Continuous Learning) " ,
5857 type : "string" ,
5958 choices : optionChoices ,
6059 default : optionDefault ,
6160 helpText :
62- "Enhance extraction accuracy with Retrieval-Augmented Generation." ,
61+ "Enhance extraction accuracy with Retrieval-Augmented Generation using your own documents ." ,
6362 } ,
6463 {
6564 key : "rawText" ,
66- label : "Enable Confidence Scores " ,
65+ label : "Enable Raw Text (Full OCR) " ,
6766 type : "string" ,
6867 choices : optionChoices ,
6968 default : optionDefault ,
7069 helpText :
71- "Extract full document text as strings and fill the `rawText` attribute ." ,
70+ "Add the full text content of your documents to the API response ." ,
7271 } ,
7372] ) ;
7473
7574export const pollingFields = defineInputFields ( [
7675 {
7776 key : "maxPollingTimeOut" ,
77+ label : "Polling Timeout" ,
7878 required : true ,
7979 default : "180" ,
8080 type : "number" ,
81- helpText : "Maximum polling timeout in seconds."
81+ helpText : "Stop attempting to poll for the result after this number of seconds. Raises an error when reached ."
8282 } ,
8383] ) ;
0 commit comments