Bioflow AI

Embedding Model

Configure a hosted or self-hosted OpenAI-compatible embedding API

BioFlow AI generates vectors through a standard OpenAI-compatible /embeddings endpoint. Hosted APIs and self-hosted deployments share the same configuration format:

[knowledge_base]
embedding_model = "Qwen/Qwen3-Embedding-4B"
base_url = "https://api.siliconflow.cn/v1/"
api_key = "YOUR_API_KEY"
KeyDescription
embedding_modelModel ID accepted by the endpoint
base_urlOpenAI-compatible API root URL, typically ending with /v1/
api_keyAPI key; for unauthenticated local services, leave blank or use a placeholder such as EMPTY

Self-hosted example (vLLM)

Start a local embedding service with vLLM:

CUDA_VISIBLE_DEVICES=0 vllm serve Qwen/Qwen3-Embedding-4B \
  --served-model-name qwen3-embedding-4b \
  --host 0.0.0.0 \
  --port 5000 \
  --task embed \
  --trust-remote-code

Then point config.toml to your local endpoint:

[knowledge_base]
embedding_model = "qwen3-embedding-4b"
base_url = "http://127.0.0.1:5000/v1/"
api_key = "EMPTY"

After switching embedding models, existing Milvus vectors are no longer compatible. Rebuild all vector indexes right away:

uv run bioflow-ai init rebuild-index

On this page