fix(openai): prompt engineering and transcript model
This commit is contained in:
@@ -0,0 +1,376 @@
|
||||
{
|
||||
"report_id": "persian-understanding-phase3-20261011",
|
||||
"implementation_status": "implemented",
|
||||
"acceptance_status": "blocked",
|
||||
"local_profile": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-realtime-mini",
|
||||
"voice": "shimmer",
|
||||
"input_sample_rate": 24000,
|
||||
"output_sample_rate": 24000,
|
||||
"audio_input": {
|
||||
"format": {
|
||||
"type": "audio/pcm",
|
||||
"rate": 24000
|
||||
},
|
||||
"transcription": {
|
||||
"model": "gpt-transcribe",
|
||||
"languages": [
|
||||
"fa",
|
||||
"en"
|
||||
]
|
||||
},
|
||||
"turn_detection": {
|
||||
"type": "server_vad",
|
||||
"create_response": false,
|
||||
"interrupt_response": false,
|
||||
"threshold": 0.5,
|
||||
"prefix_padding_ms": 300,
|
||||
"silence_duration_ms": 500
|
||||
},
|
||||
"noise_reduction": null
|
||||
},
|
||||
"reasoning": null,
|
||||
"style_revision": "iranian-persian-professional-v1",
|
||||
"effective_instructions_digest": "18183a0cc2aff0ffb33e4b10a9dc54250563c758f1b849d56b555ed7eba3c9bd"
|
||||
},
|
||||
"deployment_verified": false,
|
||||
"transport_testing": true,
|
||||
"calibration_report_configured": false,
|
||||
"embedding_profile_local": {
|
||||
"provider": "ollama",
|
||||
"endpoint": "http://localhost:11434/v1",
|
||||
"model": "bge-m3",
|
||||
"dimensions": 1024,
|
||||
"preprocessing_version": "v1"
|
||||
},
|
||||
"retrieval_policy": "exact-first-cosine-id-50x2-whole-5-12000/nfc-digits-kaf-yeh-lower-whitespace-terminal-period-v2",
|
||||
"originals": [
|
||||
{
|
||||
"name": "letter",
|
||||
"path": "data/documents/5905170444656189186_13450510740952.pdf",
|
||||
"expected_sha256": "f5732a2eff7fec3e7827c5f25c9a9d50897363935101e46f631404c03ce6ef99",
|
||||
"hash_matches": true,
|
||||
"approval": "pending",
|
||||
"document_id": null
|
||||
},
|
||||
{
|
||||
"name": "regulation",
|
||||
"path": "data/documents/7364346504113364738_13450847753183.pdf",
|
||||
"expected_sha256": "42f7cbc0ad4a187f7d8a89b0ace484e936ab25c96820fe6ac18b25533e987096",
|
||||
"hash_matches": true,
|
||||
"approval": "pending",
|
||||
"document_id": null
|
||||
},
|
||||
{
|
||||
"name": "infographic",
|
||||
"path": "data/documents/photo_1_2026-10-06_09-05-11.jpg",
|
||||
"expected_sha256": "cd177e935f25200c53af958a6c7b4540b820d49043e62fa1d383e6a76954f935",
|
||||
"hash_matches": true,
|
||||
"approval": "pending",
|
||||
"document_id": null
|
||||
},
|
||||
{
|
||||
"name": "docx",
|
||||
"path": "data/documents/-2348240626507047168_13449360743721.docx",
|
||||
"expected_sha256": "6ce416719802136d16c82e153bf0671af5bb87b441cc5fed144ebd253d647f23",
|
||||
"hash_matches": true,
|
||||
"approval": "pending",
|
||||
"document_id": null
|
||||
}
|
||||
],
|
||||
"calibration_cutoff": null,
|
||||
"retrieval_status": "blocked",
|
||||
"scenario_count_required": 26,
|
||||
"scenario_set_id": null,
|
||||
"scenario_set_sha256": null,
|
||||
"scenarios": [],
|
||||
"candidates": [
|
||||
{
|
||||
"candidate_id": "gpt-realtime-2.1-low",
|
||||
"profile": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-realtime-2.1",
|
||||
"voice": "shimmer",
|
||||
"input_sample_rate": 24000,
|
||||
"output_sample_rate": 24000,
|
||||
"audio_input": {
|
||||
"format": {
|
||||
"type": "audio/pcm",
|
||||
"rate": 24000
|
||||
},
|
||||
"transcription": {
|
||||
"model": "gpt-transcribe",
|
||||
"languages": [
|
||||
"fa",
|
||||
"en"
|
||||
]
|
||||
},
|
||||
"turn_detection": {
|
||||
"type": "server_vad",
|
||||
"create_response": false,
|
||||
"interrupt_response": false,
|
||||
"threshold": 0.5,
|
||||
"prefix_padding_ms": 300,
|
||||
"silence_duration_ms": 500
|
||||
},
|
||||
"noise_reduction": null
|
||||
},
|
||||
"reasoning": {
|
||||
"effort": "low"
|
||||
},
|
||||
"style_revision": "iranian-persian-professional-v1",
|
||||
"effective_instructions_digest": "18183a0cc2aff0ffb33e4b10a9dc54250563c758f1b849d56b555ed7eba3c9bd"
|
||||
},
|
||||
"profile_basis": "local settings held fixed for preparation; ASR/voice not human-selected",
|
||||
"status": "not_run",
|
||||
"gate": "blocked",
|
||||
"scenario_set_id": null,
|
||||
"quality": null,
|
||||
"latency_p50_seconds": null,
|
||||
"latency_p95_seconds": null,
|
||||
"usage": "unavailable",
|
||||
"cost": "unavailable",
|
||||
"compatibility": "not_run",
|
||||
"provider_sessions": 0,
|
||||
"tool_calls": 0,
|
||||
"embedding_calls": 0
|
||||
},
|
||||
{
|
||||
"candidate_id": "gpt-realtime-2.1-medium",
|
||||
"profile": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-realtime-2.1",
|
||||
"voice": "shimmer",
|
||||
"input_sample_rate": 24000,
|
||||
"output_sample_rate": 24000,
|
||||
"audio_input": {
|
||||
"format": {
|
||||
"type": "audio/pcm",
|
||||
"rate": 24000
|
||||
},
|
||||
"transcription": {
|
||||
"model": "gpt-transcribe",
|
||||
"languages": [
|
||||
"fa",
|
||||
"en"
|
||||
]
|
||||
},
|
||||
"turn_detection": {
|
||||
"type": "server_vad",
|
||||
"create_response": false,
|
||||
"interrupt_response": false,
|
||||
"threshold": 0.5,
|
||||
"prefix_padding_ms": 300,
|
||||
"silence_duration_ms": 500
|
||||
},
|
||||
"noise_reduction": null
|
||||
},
|
||||
"reasoning": {
|
||||
"effort": "medium"
|
||||
},
|
||||
"style_revision": "iranian-persian-professional-v1",
|
||||
"effective_instructions_digest": "18183a0cc2aff0ffb33e4b10a9dc54250563c758f1b849d56b555ed7eba3c9bd"
|
||||
},
|
||||
"profile_basis": "local settings held fixed for preparation; ASR/voice not human-selected",
|
||||
"status": "not_run",
|
||||
"gate": "blocked_pending_failed_low_gate",
|
||||
"scenario_set_id": null,
|
||||
"quality": null,
|
||||
"latency_p50_seconds": null,
|
||||
"latency_p95_seconds": null,
|
||||
"usage": "unavailable",
|
||||
"cost": "unavailable",
|
||||
"compatibility": "not_run",
|
||||
"provider_sessions": 0,
|
||||
"tool_calls": 0,
|
||||
"embedding_calls": 0
|
||||
},
|
||||
{
|
||||
"candidate_id": "gpt-realtime-2.1-mini-low",
|
||||
"profile": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-realtime-2.1-mini",
|
||||
"voice": "shimmer",
|
||||
"input_sample_rate": 24000,
|
||||
"output_sample_rate": 24000,
|
||||
"audio_input": {
|
||||
"format": {
|
||||
"type": "audio/pcm",
|
||||
"rate": 24000
|
||||
},
|
||||
"transcription": {
|
||||
"model": "gpt-transcribe",
|
||||
"languages": [
|
||||
"fa",
|
||||
"en"
|
||||
]
|
||||
},
|
||||
"turn_detection": {
|
||||
"type": "server_vad",
|
||||
"create_response": false,
|
||||
"interrupt_response": false,
|
||||
"threshold": 0.5,
|
||||
"prefix_padding_ms": 300,
|
||||
"silence_duration_ms": 500
|
||||
},
|
||||
"noise_reduction": null
|
||||
},
|
||||
"reasoning": {
|
||||
"effort": "low"
|
||||
},
|
||||
"style_revision": "iranian-persian-professional-v1",
|
||||
"effective_instructions_digest": "18183a0cc2aff0ffb33e4b10a9dc54250563c758f1b849d56b555ed7eba3c9bd"
|
||||
},
|
||||
"profile_basis": "local settings held fixed for preparation; ASR/voice not human-selected",
|
||||
"status": "not_run",
|
||||
"gate": "blocked",
|
||||
"scenario_set_id": null,
|
||||
"quality": null,
|
||||
"latency_p50_seconds": null,
|
||||
"latency_p95_seconds": null,
|
||||
"usage": "unavailable",
|
||||
"cost": "unavailable",
|
||||
"compatibility": "not_run",
|
||||
"provider_sessions": 0,
|
||||
"tool_calls": 0,
|
||||
"embedding_calls": 0
|
||||
},
|
||||
{
|
||||
"candidate_id": "gpt-realtime-2.1-mini-medium",
|
||||
"profile": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-realtime-2.1-mini",
|
||||
"voice": "shimmer",
|
||||
"input_sample_rate": 24000,
|
||||
"output_sample_rate": 24000,
|
||||
"audio_input": {
|
||||
"format": {
|
||||
"type": "audio/pcm",
|
||||
"rate": 24000
|
||||
},
|
||||
"transcription": {
|
||||
"model": "gpt-transcribe",
|
||||
"languages": [
|
||||
"fa",
|
||||
"en"
|
||||
]
|
||||
},
|
||||
"turn_detection": {
|
||||
"type": "server_vad",
|
||||
"create_response": false,
|
||||
"interrupt_response": false,
|
||||
"threshold": 0.5,
|
||||
"prefix_padding_ms": 300,
|
||||
"silence_duration_ms": 500
|
||||
},
|
||||
"noise_reduction": null
|
||||
},
|
||||
"reasoning": {
|
||||
"effort": "medium"
|
||||
},
|
||||
"style_revision": "iranian-persian-professional-v1",
|
||||
"effective_instructions_digest": "18183a0cc2aff0ffb33e4b10a9dc54250563c758f1b849d56b555ed7eba3c9bd"
|
||||
},
|
||||
"profile_basis": "local settings held fixed for preparation; ASR/voice not human-selected",
|
||||
"status": "not_run",
|
||||
"gate": "blocked_pending_failed_low_gate",
|
||||
"scenario_set_id": null,
|
||||
"quality": null,
|
||||
"latency_p50_seconds": null,
|
||||
"latency_p95_seconds": null,
|
||||
"usage": "unavailable",
|
||||
"cost": "unavailable",
|
||||
"compatibility": "not_run",
|
||||
"provider_sessions": 0,
|
||||
"tool_calls": 0,
|
||||
"embedding_calls": 0
|
||||
}
|
||||
],
|
||||
"selected_profile": null,
|
||||
"authorized_provider_batch": null,
|
||||
"provider_calls": 0,
|
||||
"spend_consumed": 0,
|
||||
"failures": [
|
||||
{
|
||||
"test": "tests/unit/test_json_processing.py::test_real_large_escaped_json_keeps_concurrent_loop_active[4499]",
|
||||
"category": "unrelated product responsiveness regression",
|
||||
"observed_gap_ms": 132.03,
|
||||
"limit_ms": 100,
|
||||
"focused_rerun": "9 passed",
|
||||
"cause": "undetermined; timing instability observed in preceding Phase 2 evidence",
|
||||
"repaired": false
|
||||
}
|
||||
],
|
||||
"blocked_prerequisites": [
|
||||
"Explicit bounded authorization: models, sessions, audio seconds, tool/embedding calls, spend ceiling.",
|
||||
"Approved original/document bindings and human factual DOCX inclusion; authorized actor and verified exact selected ready/active/undeleted corpus.",
|
||||
"Measured finalized calibration matching embedding/retrieval profile; independent retrieval labels approved with four unseen cases completed.",
|
||||
"Human-reviewed 20 answerable/all-critical + six unsupported grounded dialogue scenarios and approved recordings/text equivalents.",
|
||||
"Selected ASR/voice and reviewed instructions; Phase 1/2 live acceptance remains not_run.",
|
||||
"Exact candidate cancellation/interruption compatibility and native listener evidence."
|
||||
],
|
||||
"checks": {
|
||||
"focused_asr_style_reasoning": {
|
||||
"status": "passed",
|
||||
"passed": 51
|
||||
},
|
||||
"affected_grounding_interruption_calibration_reasoning": {
|
||||
"status": "passed",
|
||||
"passed": 351
|
||||
},
|
||||
"provider_free_full": {
|
||||
"status": "failed",
|
||||
"passed": 1892,
|
||||
"failed": 1,
|
||||
"skipped": 3,
|
||||
"deselected": 429,
|
||||
"duration_seconds": 326.47
|
||||
},
|
||||
"json_responsiveness_focused_rerun": {
|
||||
"status": "passed",
|
||||
"passed": 9,
|
||||
"duration_seconds": 11.13
|
||||
},
|
||||
"persisted_profile_focused": {
|
||||
"status": "passed",
|
||||
"passed": 18,
|
||||
"skipped": 0,
|
||||
"duration_seconds": 126.16
|
||||
},
|
||||
"isolated_postgres_full": {
|
||||
"status": "passed",
|
||||
"passed": 429,
|
||||
"skipped": 0,
|
||||
"deselected": 1896,
|
||||
"duration_seconds": 1647.7,
|
||||
"database": "rag_persian_phase3_test",
|
||||
"postgresql": "16.15",
|
||||
"pgvector": "0.8.7"
|
||||
},
|
||||
"static": {
|
||||
"status": "passed",
|
||||
"checks": [
|
||||
"AST/JSON",
|
||||
"git diff --check",
|
||||
"shared POLICY unchanged",
|
||||
"Gemini adapter unchanged",
|
||||
"applied migrations byte-identical"
|
||||
]
|
||||
},
|
||||
"retrieval_manifest_preflight": {
|
||||
"status": "blocked",
|
||||
"reason": "Frozen 20 answerable / 6 unsupported with four unseen cases required"
|
||||
},
|
||||
"calibration_label_structure": {
|
||||
"status": "passed",
|
||||
"quality_acceptance": false
|
||||
},
|
||||
"isolated_cleanup": {
|
||||
"status": "passed",
|
||||
"remaining_test_schemas": 0,
|
||||
"public_tables": 0,
|
||||
"task_container_removed": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user