/api/embedEmbeds a chunk of text and stores it in the workspace's documents table.
Body
{
"text": "string · up to 8 KB",
"file_id": "uuid · must be visible to the caller",
"metadata": {"title": "optional", "source": "md_session | manual | node"}
}Response
{ "ok": true, "provider": "openai", "model": "text-embedding-3-small", "chars": 1432 }