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)); }, };