reneco-advanced-input-module 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/voice-input-module.cjs.entry.js +6 -4
- package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
- package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
- package/dist/collection/services/llm.service.js +6 -4
- package/dist/collection/services/llm.service.js.map +1 -1
- package/dist/components/voice-input-module.js +6 -4
- package/dist/components/voice-input-module.js.map +1 -1
- package/dist/esm/voice-input-module.entry.js +6 -4
- package/dist/esm/voice-input-module.entry.js.map +1 -1
- package/dist/voice-input-module/{p-20ef690a.entry.js → p-95d4525d.entry.js} +3 -3
- package/dist/voice-input-module/p-95d4525d.entry.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
- package/dist/voice-input-module/voice-input-module.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-20ef690a.entry.js → p-95d4525d.entry.js} +3 -3
- package/www/build/p-95d4525d.entry.js.map +1 -0
- package/www/build/{p-14ee7fca.js → p-a24d9117.js} +1 -1
- package/www/build/voice-input-module.entry.esm.js.map +1 -1
- package/www/build/voice-input-module.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/voice-input-module/p-20ef690a.entry.js.map +0 -1
- package/www/build/p-20ef690a.entry.js.map +0 -1
|
@@ -557,7 +557,7 @@ class OpenAILLMService {
|
|
|
557
557
|
9. Respect the constraints written between parenthesis for readonly status (readonly fields MUST NOT be filled with values), min and max values, whatever the transcription says
|
|
558
558
|
9b. CRITICAL - DATE/DATETIME OUT OF RANGE: For date and datetime fields with min and/or max constraints, if the value from the transcription falls outside the allowed range, leave the field EMPTY. NEVER clamp, adjust, or substitute a boundary date - either the date is valid and within range, or the field is left empty
|
|
559
559
|
10. IMPORTANT: Fields marked as "readonly" are presentation elements (headers, labels) that provide context but MUST NOT receive values
|
|
560
|
-
11. CRITICAL - DUPLICATE FIELDS: When you see multiple fields with the same name but different IDs (e.g., "ID:field1 | Event date" and "ID:field2 | Event date"), these are DIFFERENT fields in DIFFERENT sections. The user
|
|
560
|
+
11. CRITICAL - DUPLICATE FIELDS: When you see multiple fields with the same name but different IDs (e.g., "ID:field1 | Event date" and "ID:field2 | Event date"), these are DIFFERENT fields in DIFFERENT sections. TWO CASES APPLY: (a) The user SPECIFIES a section or instance (e.g., "for the first sub-form", "for the clinical sign", "the second one"): fill ONLY the field that belongs to that section - use readonly headers as structural markers and listen VERY CAREFULLY to contextual clues; (b) The user mentions a field name WITHOUT any section or instance qualifier (e.g., simply "the event date is X"): apply the SAME value to ALL fields sharing that name, each as a separate entry in the response
|
|
561
561
|
12. Use readonly fields as contextual hints to understand form structure and field grouping, but never fill them
|
|
562
562
|
13. CRITICAL - UNKNOWN/NO/N-A VALUES: The interpretation of words like "Unknown", "Inconnu", "No", "Non", "N/A", "Non applicable" depends ENTIRELY on whether the field has those words as explicit options. Rule: if the user says "field X is Unknown" (or any similar phrasing) AND "Unknown" (or a close variant) exists in the options list for that field, then SELECT that option - it is a valid value. If the user says such words for a field that does NOT have them as options (string, number, date, etc.), then it means the user has no value to provide - leave the field empty, do NOT fill it with the literal text
|
|
563
563
|
14. CRITICAL: Each field has a unique ID shown as "ID:xxx" at the start of its description. You MUST include this exact ID in your response for each field you fill. The ID is the ONLY way to distinguish between fields with the same name
|
|
@@ -634,7 +634,7 @@ class OpenAILLMService {
|
|
|
634
634
|
10. Respect the constraints written between parenthesis for readonly status (readonly fields MUST NOT be filled with values), min and max values, whatever the transcription says
|
|
635
635
|
10b. CRITICAL - DATE/DATETIME OUT OF RANGE: For date and datetime fields with min and/or max constraints, if the value from the transcription falls outside the allowed range, leave the field EMPTY. NEVER clamp, adjust, or substitute a boundary date - either the date is valid and within range, or the field is left empty
|
|
636
636
|
11. IMPORTANT: Fields marked as "readonly" are presentation elements (headers, labels) that provide context but MUST NOT receive values
|
|
637
|
-
12. CRITICAL - DUPLICATE FIELDS: When you see multiple fields with the same name but different IDs (e.g., "ID:field1 | Event date" and "ID:field2 | Event date"), these are DIFFERENT fields in DIFFERENT sections. The user
|
|
637
|
+
12. CRITICAL - DUPLICATE FIELDS: When you see multiple fields with the same name but different IDs (e.g., "ID:field1 | Event date" and "ID:field2 | Event date"), these are DIFFERENT fields in DIFFERENT sections. TWO CASES APPLY: (a) The user SPECIFIES a section or instance (e.g., "for the first sub-form", "in the anamnesis section", "for the clinical sign"): fill ONLY the field that belongs to that section - use readonly headers as structural markers and listen VERY CAREFULLY to contextual clues; (b) The user mentions a field name WITHOUT any section or instance qualifier: apply the SAME value to ALL fields sharing that name, each as a separate entry in the response
|
|
638
638
|
13. Use readonly fields as contextual hints to understand form structure and field grouping, but never fill them
|
|
639
639
|
14. CRITICAL - UNKNOWN/NO/N-A VALUES: The interpretation of words like "Unknown", "Inconnu", "No", "Non", "N/A", "Non applicable" depends ENTIRELY on whether the field has those words as explicit options. Rule: if the user says "field X is Unknown" (or any similar phrasing) AND "Unknown" (or a close variant) exists in the options list for that field, then SELECT that option - it is a valid value. If the user says such words for a field that does NOT have them as options (string, number, date, etc.), then it means the user has no value to provide - leave the field empty, do NOT fill it with the literal text
|
|
640
640
|
15. CRITICAL - PATTERN VALIDATION: Some fields have a regex pattern shown as "pattern=xxx". The value you extract MUST match this pattern exactly. If the transcription is too ambiguous to produce a value that matches the pattern, leave the field EMPTY
|
|
@@ -759,7 +759,8 @@ Rules:
|
|
|
759
759
|
8. DATE/DATETIME OUT OF RANGE: if a date falls outside min/max constraints, leave the field EMPTY
|
|
760
760
|
9. PATTERN VALIDATION: if a field has a pattern, the value MUST match it exactly, otherwise leave empty
|
|
761
761
|
10. UNKNOWN VALUES: if the user says "Unknown" and it exists as an option, select it; otherwise leave empty
|
|
762
|
-
11.
|
|
762
|
+
11. DUPLICATE FIELD NAMES: if multiple fields share the same name (different IDs/sections) and the user specifies which section, fill only the matching one. If the user gives a value with NO section qualifier, apply the same value to ALL fields sharing that name, each as a separate entry.
|
|
763
|
+
12. CONFIDENCE SCORE: For each field you fill, add a "confidence" property (number between 0.01 and 0.99, max 2 decimal places) reflecting how certain you are about the extracted value. Use values close to 0.99 for clearly stated values, lower when you had to infer or approximate.
|
|
763
764
|
Respond ONLY with valid JSON.`;
|
|
764
765
|
}
|
|
765
766
|
}
|
|
@@ -823,7 +824,8 @@ Rules:
|
|
|
823
824
|
8. DATE/DATETIME OUT OF RANGE: if a date falls outside min/max constraints, leave the field EMPTY
|
|
824
825
|
9. PATTERN VALIDATION: if a field has a pattern, the value MUST match it exactly, otherwise leave empty
|
|
825
826
|
10. UNKNOWN VALUES: if the user says "Unknown" and it exists as an option, select it; otherwise leave empty
|
|
826
|
-
11.
|
|
827
|
+
11. DUPLICATE FIELD NAMES: if multiple fields share the same name (different IDs/sections) and the user specifies which section, fill only the matching one. If the user gives a value with NO section qualifier, apply the same value to ALL fields sharing that name, each as a separate entry.
|
|
828
|
+
12. CONFIDENCE SCORE: For each field you fill, add a "confidence" property (number between 0.01 and 0.99, max 2 decimal places) reflecting how certain you are about the extracted value. Use values close to 0.99 for clearly stated values, lower when you had to infer or approximate.
|
|
827
829
|
Respond ONLY with valid JSON.`;
|
|
828
830
|
}
|
|
829
831
|
}
|