chroma-core/chroma · error · ChromaValueError
No embedding function found for collection '${this._name}'.
Error message
No embedding function found for collection '${this._name}'. You can either provide embeddings directly, or ensure the appropriate embedding function package (e.g. @chroma-core/default-embed) is installed. What it means
Error "No embedding function found for collection '${this._name}'. You can either provide embeddings directly, or ensure the appropriate embedding function package (e.g. @chroma-core/default-embed) is installed." thrown in chroma-core/chroma.
Source
Thrown at clients/new-js/packages/chromadb/src/collection.ts:463
protected async path(): Promise<{
tenant: string;
database: string;
collection_id: string;
}> {
return {
tenant: this.tenant,
database: this.database,
collection_id: this.id,
};
}
private async embed(inputs: string[], isQuery: boolean): Promise<number[][]> {
const embeddingFunction =
this._embeddingFunction ?? this.getSchemaEmbeddingFunction();
if (!embeddingFunction) {
throw new ChromaValueError(
`No embedding function found for collection '${this._name}'. ` +
"You can either provide embeddings directly, or ensure the appropriate " +
"embedding function package (e.g. @chroma-core/default-embed) is installed.",
);
}
if (isQuery && embeddingFunction.generateForQueries) {
return await embeddingFunction.generateForQueries(inputs);
}
return await embeddingFunction.generate(inputs);
}
private async sparseEmbed(
sparseEmbeddingFunction: SparseEmbeddingFunction,
inputs: string[],
isQuery: boolean,
): Promise<SparseVector[]> {View on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at clients/new-js/packages/chromadb/src/collection.ts:463 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/f6188b370bdf09ab.
Report an issue: GitHub.