🚀 FastFlowLM v0.9.15: New Embedding Capabilities & API Integration
🔎 1. New Model: EmbeddingGemma-300m
The first Embedding model on FLM:
- Runs fully offline on AMD Ryzen™ AI NPU
- Supports chunk sizes up to 2048 tokens
Try it out:
- Start flm in server mode with embedding model enabled:
flm serve gemma3:4b --embed 1 # Load embedding model in background, with concurrent LLM loading (gemma3:4b).
⚠️ Note: Embedding model is not allowed in CLI mode.
🌐 2. OpenAI-Compatible Embedding API: v1/embeddings
FastFlowLM now supports the OpenAI v1/embeddings endpoint making it easy to integrate embedding model into any OpenAI-compatible client or UI.
How to use:
- Start FLM server with embedding model enabled:
# serve
flm serve gemma3:4b --embed 1 # Load embedding model in background, with concurrent LLM loading (gemma3:4b).- Send file(s) to:
POST /v1/embeddings
via any OpenAI client or Open WebUI.
Examples: Test in OpenAI client
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:52625/v1", # FastFlowLM's local API endpoint
api_key="flm", # Dummy key (FastFlowLM doesn't require authentication)
)
resp = client.embeddings.create(
model="embed-gemma",
input="Hi, everyone!"
)
print(resp.data[0].embedding)Example: Open WebUI
- Follow Open WebUI setup guide.
- In the bottom-left corner, click
Usericon, then selectSettings. - In the bottom panel, open
Admin Settings. - In the left sidebar, navigate to Documents.
- Set Embedding Model Engine to OpenAI.
- Enter:
-- API Base URL:http://host.docker.internal:52625/v1
-- API KEY:flm(any value works)
-- Embedding Model:embed-gemma:300m - Save the setting.
- Follow the RAG + FastFlowLM example to launch your Local Private Database with RAG all powered by FLM.
🙏 Acknowledgement
Special thanks to julienM77 for contributing the message normalizer that improves handling of corrupted user messages.
🌟 Summary
FastFlowLM v0.9.15 introduces offline embedding with embedding gemma and support for OpenAI's v1/embeddings API. Just start the server with --embed 1 and you're ready to build local, private, and intelligent applications.