From bddd6d823997b0e0d159d4e86ae1462c883c2484 Mon Sep 17 00:00:00 2001 From: Varun Chopra <113368492+VarunChopra11@users.noreply.github.com> Date: Sun, 8 Mar 2026 16:25:48 +0000 Subject: [PATCH] =?UTF-8?q?fix(memory):=20correct=20embedBatch=20comment?= =?UTF-8?q?=20=E2=80=94=20/api/embed=20supports=20batched=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/memory/embeddings-ollama.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memory/embeddings-ollama.ts b/src/memory/embeddings-ollama.ts index 3b2910862eb..7dc7e3eb856 100644 --- a/src/memory/embeddings-ollama.ts +++ b/src/memory/embeddings-ollama.ts @@ -118,7 +118,8 @@ export async function createOllamaEmbeddingProvider( model: client.model, embedQuery: embedOne, embedBatch: async (texts: string[]) => { - // Ollama /api/embed accepts one input per request. + // Ollama /api/embed supports batched input, but we fan-out here to + // keep error handling and response normalisation consistent per text. return await Promise.all(texts.map(embedOne)); }, };