{"record":{"id":"f6188b370bdf09ab","repo":"chroma-core/chroma","slug":"no-embedding-function-found-for-collection-this","errorCode":null,"errorMessage":"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.","messagePattern":"No embedding function found for collection '(.+?)'\\. You can either provide embeddings directly, or ensure the appropriate embedding function package \\(e\\.g\\. @chroma-core/default-embed\\) is installed\\.","errorType":"validation","errorClass":"ChromaValueError","httpStatus":null,"severity":"error","filePath":"clients/new-js/packages/chromadb/src/collection.ts","lineNumber":463,"sourceCode":"\n  protected async path(): Promise<{\n    tenant: string;\n    database: string;\n    collection_id: string;\n  }> {\n    return {\n      tenant: this.tenant,\n      database: this.database,\n      collection_id: this.id,\n    };\n  }\n\n  private async embed(inputs: string[], isQuery: boolean): Promise<number[][]> {\n    const embeddingFunction =\n      this._embeddingFunction ?? this.getSchemaEmbeddingFunction();\n\n    if (!embeddingFunction) {\n      throw new ChromaValueError(\n        `No embedding function found for collection '${this._name}'. ` +\n          \"You can either provide embeddings directly, or ensure the appropriate \" +\n          \"embedding function package (e.g. @chroma-core/default-embed) is installed.\",\n      );\n    }\n\n    if (isQuery && embeddingFunction.generateForQueries) {\n      return await embeddingFunction.generateForQueries(inputs);\n    }\n\n    return await embeddingFunction.generate(inputs);\n  }\n\n  private async sparseEmbed(\n    sparseEmbeddingFunction: SparseEmbeddingFunction,\n    inputs: string[],\n    isQuery: boolean,\n  ): Promise<SparseVector[]> {","sourceCodeStart":445,"sourceCodeEnd":481,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/clients/new-js/packages/chromadb/src/collection.ts#L445-L481","documentation":"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.","triggerScenarios":"Thrown at clients/new-js/packages/chromadb/src/collection.ts:463 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aecdd12c8a891610db8653630b066b32ceb678b5","analyzedAt":"2026-08-16T21:53:27.228Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}