chroma-core/chroma · error · Error
Failed to generate jina embedding data.
Error message
Failed to generate jina embedding data.
What it means
Error "Failed to generate jina embedding data." thrown in chroma-core/chroma.
Source
Thrown at clients/new-js/packages/ai-embeddings/jina/src/index.ts:123
model: this.modelName,
task: this.task,
lateChunking: this.lateChunking,
truncate: this.truncate,
dimensions: this.dimensions,
normalized: this.normalized,
embeddingType: this.embeddingType,
};
try {
const response = await fetch(this.url, {
method: "POST",
headers: this.headers,
body: JSON.stringify(snakeCase(body)),
});
const data = (await response.json()) as JinaEmbeddingsResponse;
if (!data || !data.data) {
throw new Error("Failed to generate jina embedding data.");
}
return data.data.map((result) => result.embedding);
} catch (error) {
if (error instanceof Error) {
throw new Error(`Error calling Jina AI API: ${error.message}`);
} else {
throw new Error(`Error calling Jina AI API: ${error}`);
}
}
}
public defaultSpace(): EmbeddingFunctionSpace {
return "cosine";
}
public supportedSpaces(): EmbeddingFunctionSpace[] {
return ["cosine", "l2", "ip"];
}View on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at clients/new-js/packages/ai-embeddings/jina/src/index.ts:123 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of chroma-core/chroma@aecdd12c8a (2026-08-16).
Data as JSON: /api/errors/b4dc8d8af505fc17.
Report an issue: GitHub.