Files
rag-technical-docs-assistant/docs
amirhosein mazaheri 117fda7cc9 feat(voice): specialize prompt for Isfahan Industrial Parks, emit source excerpts, and bound generation
- Specialize voice assistant identity and agent system prompt for «شرکت شهرک‌های صنعتی اصفهان» (English instructions with Persian proper names)
- Emit bounded chunk text excerpts (up to 2000 chars) and identify primary_source in realtime sources events
- Bound OpenAI output generation via OPENAI_REALTIME_MAX_OUTPUT_TOKENS and add answer_limited event
- Handle old-turn search cancellation safely on turn supersession
- Add end-to-end search tracing pipeline and diagnostic CLI
- Add database organization title and settings update script
2026-10-12 17:35:28 +03:30
..

Project documentation

The current implementation baseline is the English revision 1.3 Live document MVP delivery plan. It targets a conditional four-day demo using the existing ingestion/embedding Phases 1-4, LangChain RAG/tools, new browser uploads and direct Gemini Live. The four supplied examples are mandatory initial tests, not an upload allowlist. Full text chat/history and settings editing are deferred.

Implementation reading order

  1. Delivery plan: active scope, gates, Days 1-4 and MVP-01 through MVP-14.
  2. Implementation guide: work packages, embedding/LangChain boundary, worker and retained review/resume.
  3. API catalog: active/deferred routes, D06/D07 exact review and authenticated Live.
  4. Database design: existing foundation, proposed forward review/identity/voice changes and invariants.
  5. English scenarios: supplied and unseen uploads, factual FAQ, voice and failure walkthroughs.
  6. Architecture: dependency boundaries; broader deferred sections are context.

The plan governs scope, API/database govern contracts and the guide governs workflows. Proposed mechanisms are not implementation-completion reports.

Implementation progress is tracked in the Live document MVP TODO. Checked baseline components do not prove complete MVP acceptance.

Current code and recorded evidence

Phase 5 worker/publication/retry and retained review/resume backend services are implemented; Phase 6 operator handoff records integration acceptance and the separate opt-in provider smoke command. Scoped pgvector search/selection and Fast-Track Search Phase 2 technical correctness are implemented; Phase 2 results and calibration prerequisites record actual acceptance. Real-model cutoff calibration, LangChain, authenticated D06/D07 transport, HTTP identity/upload, browser integration, Live and UI remain pending. Real-provider compatibility and Persian extraction/semantic quality are not certified by mocks. The root README retains prototype startup instructions.

Historical context and corpus boundary

The Persian scenario report is preserved as historical revision 1.2. New MVP instructions/scenarios are English. Older text/history/settings promises do not override revision 1.3.

Project documentation stays under docs; uploaded/sample corpus stays under data. Documentation changes do not clean/rebuild any existing vector index. Preserve applied migrations, independent immutable document IDs, technical revisions and compatible embedding profiles. Do not index project specifications as organization knowledge.