OpenVortexAI Docs
RAG and documents

Indexing and retrieval

Interpret document states and tune extraction, embedding, retrieval, and reranking safely.

State model

  • Stored: the source file exists in mapped storage.
  • Text ready: parsing or OCR produced usable extracted text.
  • RAG ready: chunks and embeddings are stored and available for retrieval.
  • Failed: a stage recorded an error that requires investigation or retry.

Text ready does not imply RAG ready. Full Context can use extracted text while RAG work is pending.

Background work

Upload, extraction, and indexing can continue after the HTTP upload response. INDEX_WORKER_THREADS controls indexing concurrency. Increase it cautiously because embedding generation competes for CPU and memory.

Retrieval quality checks

  1. Open the extracted text and confirm important content exists.
  2. Ask a query with a known answer and distinct terms.
  3. Confirm the intended document is selected.
  4. Compare keyword, vector, and hybrid retrieval.
  5. Add reranking only after measuring candidate quality and latency.

If no useful text was extracted, retrieval tuning cannot repair the document.

On this page