Skip to main content
PAPER LEDGER SEATEXIT FINOPS // OPEN WEBUI + DOCLING + QDRANT AUDIT BASELINE: 2026-10-15 | VULTR ($300 CREDIT) + HOSTINGER KVM 4/8 ($9.99-$19.99/MO)
OpenWebUIRAG
OpenWebUIRAG Transparency: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero cost to you (Disclosure).
Savings Playbooks // SeatExit FinOps

Hybrid BYOK Reasoning + Zero-Fee Local BGE-M3 Embeddings

Embedding 500,000 chunks locally with BAAI/bge-m3 eliminates vectorization API bills and keeps raw document chunks off third-party embedding logs.

Measured Unit Economics & Telemetry

Re-indexing 20,000 PDFs across SaaS embedding APIs incurs recurring ingestion charges whenever chunk sizes or OCR pipelines change. Running BGE-M3 locally inside Open WebUI turns embedding into a fixed RAM cost (~1.38 GB), leaving external API spend strictly for top-K synthesis turns via OpenAI-compatible endpoints such as Xiaomi MiMo.

Resource / Billing LineAudited ValueFinOps Impact
Local BGE-M3 Embedding Cost / 1M Chunks$0.00 API feeRuns on KVM 4 / KVM 8 CPU cores
BGE-M3 Vector Dimensions1024-dim + sparseMultilingual + code retrieval parity
BYOK Synthesis Cost (8 chunks Top-K)~$0.004 / queryOnly retrieved snippets hit LLM API
RAM Allocation for BGE-M3 ONNX1,380 MB RSSStays resident for sub-45ms query embeds

Implementation & Configuration Checklist

  1. Set RAG_EMBEDDING_ENGINE Empty: Leave RAG_EMBEDDING_ENGINE blank in .env.openwebui so SentenceTransformers loads locally.
  2. Pin RAG_EMBEDDING_MODEL=BAAI/bge-m3: Pre-warm the model volume during container build to avoid cold-start delays.
  3. Connect Metered BYOK LLM Endpoint: Point OPENAI_API_BASE_URL to LiteLLM or an OpenAI-compatible provider like Xiaomi MiMo.
RAG_EMBEDDING_ENGINE=
RAG_EMBEDDING_MODEL=BAAI/bge-m3
RAG_TOP_K=8
ENABLE_RAG_HYBRID_SEARCH=true

Team RAG Infrastructure FAQ

How fast does BGE-M3 embed a single user search query on CPU?

Query embedding of 15-30 tokens completes in ~35-65 ms on modern EPYC vCPUs.

Should bulk 10,000-PDF ingestion happen during work hours?

Run initial bulk indexing overnight or via batch script so CPU stays responsive for live chat.

Related Savings Playbooks Dossiers

OpenWebUIRAG: Pair local BGE-M3 embeddings with metered BYOK endpoints Connect BYOK API