Architecture
RAG pipeline
Follow a file from upload through extraction, chunking, embedding, retrieval, and optional reranking.
Indexing path
- The API stores the uploaded file in mapped storage.
- A type-specific parser extracts text; OCR is used when configured and needed.
- The text is split into chunks.
- The API computes embeddings, by default with
sentence-transformers/all-MiniLM-L6-v2. - The 384-dimensional vectors and chunk metadata are stored in PostgreSQL with pgvector.
Text extraction and RAG indexing have separate statuses. A file can be ready for Full Context while its chunks or embeddings are still pending.
Retrieval path
OpenVortexAI supports keyword, vector, and hybrid retrieval. Hybrid mode combines keyword and vector scores with configured weights. Optional reranking performs a second ordering pass over candidate chunks and adds compute cost.
Operational characteristics
Extraction, OCR, embedding, and reranking can be CPU-heavy. Avoid raising OCR_WORKER_THREADS or INDEX_WORKER_THREADS until you have observed queue time and host utilization under representative files.