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 Line | Audited Value | FinOps Impact |
|---|---|---|
| Local BGE-M3 Embedding Cost / 1M Chunks | $0.00 API fee | Runs on KVM 4 / KVM 8 CPU cores |
| BGE-M3 Vector Dimensions | 1024-dim + sparse | Multilingual + code retrieval parity |
| BYOK Synthesis Cost (8 chunks Top-K) | ~$0.004 / query | Only retrieved snippets hit LLM API |
| RAM Allocation for BGE-M3 ONNX | 1,380 MB RSS | Stays resident for sub-45ms query embeds |
Implementation & Configuration Checklist
- Set RAG_EMBEDDING_ENGINE Empty: Leave RAG_EMBEDDING_ENGINE blank in .env.openwebui so SentenceTransformers loads locally.
- Pin RAG_EMBEDDING_MODEL=BAAI/bge-m3: Pre-warm the model volume during container build to avoid cold-start delays.
- 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.