Files
rag-technical-docs-assistant/README.md
amirhosein mazaheri 9b5be918d4 docs: reconcile project status and local stack operations
Refresh entry points and progress checkpoints, document schema revision 0006, and consolidate the final ElevenLabs/GapGPT profile and host prerequisites.

Preserve dated activation evidence and distinguish implementation, targeted validation, incomplete full-suite checks and remaining human acceptance gates.

Validation: 409 local Markdown link targets resolved and staged whitespace checks passed.
2026-10-20 09:00:55 +03:30

3.4 KiB

Technical Documentation Assistant

Phase 1 backend for independently uploaded documents and grounded Persian voice. The application uses a modular FastAPI API, a separate ingestion worker, PostgreSQL/pgvector, durable original/extraction storage, and backend-owned search. The Angular frontend is maintained in the sibling faq_chatbot_frontend repository.

Start with current status, the documentation index, and the startup and recovery guide. The local Windows runbook describes the last recorded isolated speech stack; it is not a production deployment recipe.

Current capabilities

  • Authenticated upload, processing status, retained extraction review, retry, active knowledge selection and soft deletion with request replay protection.
  • Immutable independent document IDs, fenced worker publication and organization-scoped retrieval over eligible uploaded PostgreSQL chunks.
  • Shared backend search and private voice adapters for OpenAI, Gemini and the development-only Local S2S engine, with pinned session profiles.
  • Local strict extractive grounding before TTS and up to ten whole source chunks within 12,000 characters. This is not a guarantee that uploaded facts are true.
  • Public model identifiers and allowed voice-provider selection; arbitrary model, credential and general settings editing remain deferred.

Implementation, fixture tests, real-provider checks and human acceptance are separate claims. See current status and remaining gates.

Setup

Python 3.11+, PostgreSQL with pgvector and configured provider access are required. Use the frozen embedding profile and durable directories for the target database. Never change an existing embedding identity merely to make startup succeed.

.venv/Scripts/python -m pip install -e ".[api,voice,embedding,test]"
.venv/Scripts/alembic upgrade head
.venv/Scripts/python -m app.server --host 127.0.0.1 --port 8080
# Separate process, with an authorized ingestion queue:
.venv/Scripts/python -m app.worker

Configure from .env.example. Provision a new installation with app.bootstrap/app.provision as described in the operations guide. Persistent provider keys stay server-side. The supported voice API entry point is app.server.

The current Live schema requirement is 0006_voice_model_settings. Apply forward migrations before starting the API; do not edit applied revisions.

Validation

.venv/Scripts/python -m pytest -m "not postgres"
.venv/Scripts/python -m pytest -m postgres --require-postgres
git diff --check

PostgreSQL acceptance requires an isolated TEST_DATABASE_URL and pgvector; missing configuration must fail acceptance. Ordinary skips are not database proof. See test guidance. No build/lint pipeline is defined here.

Scope and legacy prototype

The Phase 1 delivery plan governs scope, with dated authorized amendments indexed in the reference map. Full text history and general settings editing remain deferred.

The older app.main / app.services agent uses Chroma/FastEmbed and the optional prototype dependencies. That path does not represent uploaded-document search or the supported modular voice startup. Project specifications under docs are not organization knowledge and must not be ingested as the user corpus.