chroma-core/chroma · error · Error
Invalid response format: missing or invalid embeddings array
Error message
Invalid response format: missing or invalid embeddings array
What it means
Error "Invalid response format: missing or invalid embeddings array" thrown in chroma-core/chroma.
Source
Thrown at clients/new-js/packages/ai-embeddings/chroma-cloud-splade/src/index.ts:146
});
if (!response.ok) {
const errorText = await response.text();
throw new Error(
`HTTP ${response.status} ${response.statusText}: ${errorText}`,
);
}
const data =
(await response.json()) as ChromaCloudSparseEmbeddingsResponse;
// Validate response structure
if (!data || typeof data !== "object") {
throw new Error("Invalid response format: expected object");
}
if (!Array.isArray(data.embeddings)) {
throw new Error(
"Invalid response format: missing or invalid embeddings array",
);
}
// Sort the sparse vectors to match Python behavior
sortSparseVectors(data.embeddings);
return data.embeddings;
} catch (error) {
if (error instanceof Error) {
throw new Error(`Error calling Chroma Embedding API: ${error.message}`);
} else {
throw new Error(`Error calling Chroma Embedding API: ${error}`);
}
}
}
public async generateForQueries(texts: string[]): Promise<SparseVector[]> {View on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at clients/new-js/packages/ai-embeddings/chroma-cloud-splade/src/index.ts:146 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/a7875fa00ab42dd7.
Report an issue: GitHub.