Prompt
Do I need a separate service for embeddings?
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
Not necessarily.
You need a separate embeddings service only if:
- you want to generate embeddings at scale independently of your main app
- you need low-latency, high-throughput vector generation
- you want embeddings to be reused by multiple systems
- you need a distinct GPU-backed deployment or autoscaling path
- your architecture already separates inference services from app logic
You do not need a separate service if:
- you only embed text occasionally
- your app can call an embeddings API directly from the backend
- you’re fine with embeddings being part of the same service as search/indexing
- you’re prototyping or building a smaller system
Common pattern
For many apps, embeddings are just a module or worker inside the backend:
- app receives text/documents
- backend calls embedding model/API
- vectors are stored in a vector DB
- retrieval/search uses those vectors
Rule of thumb
- Small/medium app: keep it in the main backend
- Large or shared ML infrastructure: use a separate embeddings service
If you want, I can sketch a simple architecture for either:
- single-service setup, or
- separate embeddings microservice setup.