docs(voice): freeze OpenAI Realtime Phase 0 contracts
Align voice specifications and the MVP plan with OpenAI Realtime. Document audio admission, bounded playback, cancellation ownership, turn correlation, cleanup barriers and calibration prerequisites. Preserve historical checkpoints and record unrun acceptance gates.
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
| Milestone | Four implementation days as a conditional demo target; three days is optimistic |
|
||||
| Scope authority | This plan governs the current MVP; it supersedes the previous 7-10 day text-and-voice milestone |
|
||||
|
||||
Phase 0 amendment (2026-10-08): OpenAI Realtime replaces Gemini Live for voice only. The [Realtime MVP plan](../plans/realtime-agent-mvp-plan.md) supplies the current backend phase sequence and conditional 3-5 day estimate; prior four-day schedule is historical. See [Phase 0 prerequisites and results](../guides/realtime-agent-phase0.md). Extraction/embeddings and HTTP/search contracts are unchanged.
|
||||
|
||||
## 1. Release Objective
|
||||
|
||||
Deliver an authenticated Persian document assistant with this actual workflow:
|
||||
@@ -31,7 +33,7 @@ Full text chat and durable message history move to the follow-up milestone.
|
||||
|
||||
Confirmed user direction: browser upload, all four supplied examples, new
|
||||
documents beyond those examples, LangChain, reuse of the implemented embedding
|
||||
pipeline, and backend-managed direct Gemini Live speech-to-speech.
|
||||
pipeline, and backend-managed direct OpenAI Realtime speech-to-speech.
|
||||
|
||||
| Existing component | Evidence and reuse boundary |
|
||||
| --- | --- |
|
||||
@@ -49,7 +51,7 @@ dimension, preprocessing or rebuilding compatible vectors. Recorded tests
|
||||
establish component behavior only; real hosted-provider quality, Persian
|
||||
speech and the complete workflow remain unverified.
|
||||
|
||||
In the first Day 1 work block, prove real Gemini audio, Persian output,
|
||||
In the first Day 1 work block, prove real OpenAI Realtime audio, Persian output,
|
||||
transcription and a backend-executed function call on the intended network.
|
||||
Confirm funded embedding/extraction profiles and actual HTTPS hosting in the
|
||||
same day. Failed provider access changes the dependent estimate; it does not
|
||||
@@ -65,7 +67,7 @@ justify quietly replacing Live with text.
|
||||
| Processing | Existing extraction/chunking/embedding components, separate durable worker, fenced recovery and complete publication | Distributed fleet, broker, batch checkpoint orchestration |
|
||||
| QC | Evidence-bound review of retained output and explicit factual FAQ approval; clear failures | Elaborate review editor and automatic quality classifier |
|
||||
| Search/framework | LangChain tool/retriever integration over one scoped pgvector search service; compatible query embedding and exact identifiers | Retrieval tuning UI; reranker/ANN only if measured failures justify them |
|
||||
| Voice | Direct Gemini Live through backend WSS, Persian speech, follow-ups, topic changes, interruption and visible failure | Seamless reconnect, raw recording, telephony/CTI |
|
||||
| Voice | Direct OpenAI Realtime through backend WSS, Persian speech, follow-ups, topic changes, interruption and visible failure | Seamless reconnect, raw recording, telephony/CTI |
|
||||
| Visible evidence | Current-session provider transcripts when delivered, retrieved sources with real locators | Guaranteed durable transcript, complete message history and exact spoken-claim attribution |
|
||||
| Persistence | Original files, jobs/chunks, review decisions, identity, owned voice/session/tool metadata | Durable text turns/messages/citations and cross-mode continuation |
|
||||
| Configuration | Fixed server profiles and seeded assistant name/instruction; read-only capabilities | Settings editor, model/voice selector and provider comparisons as required delivery work |
|
||||
@@ -97,7 +99,7 @@ attribution has been proved. Refreshing the page need not recover a full transcr
|
||||
|
||||
Use one modular FastAPI application, a separate ingestion worker from the
|
||||
same codebase, PostgreSQL/pgvector and durable file storage. LangChain is the
|
||||
RAG/tool framework; Gemini Live owns the native audio conversation loop.
|
||||
RAG/tool framework; OpenAI Realtime owns the native audio conversation loop.
|
||||
|
||||
```mermaid
|
||||
flowchart TB
|
||||
@@ -109,7 +111,7 @@ flowchart TB
|
||||
API --> SEARCH["Shared search service / LangChain tool"]
|
||||
SEARCH --> DB
|
||||
UI <-->|"Authenticated audio/events WSS"| API
|
||||
API <-->|"Direct audio + correlated function calls/results"| LIVE["Gemini Live"]
|
||||
API <-->|"Direct audio + correlated function calls/results"| LIVE["OpenAI Realtime"]
|
||||
```
|
||||
|
||||
### 5.1 Existing embedding pipeline and LangChain boundary
|
||||
|
||||
Reference in New Issue
Block a user