{"record":{"id":"df9554b6c5b072f1","repo":"chroma-core/chroma","slug":"this-operation-requires-an-embedding-function-whi","errorCode":null,"errorMessage":"This operation requires an embedding function, which is not available on a collection obtained via client.collection(id). Provide pre-computed embeddings directly, or use client.getCollection() to get a full collection with embedding support.","messagePattern":"This operation requires an embedding function, which is not available on a collection obtained via client\\.collection\\(id\\)\\. Provide pre-computed embeddings directly, or use client\\.getCollection\\(\\) to get a full collection with embedding support\\.","errorType":"validation","errorClass":"ChromaValueError","httpStatus":null,"severity":"error","filePath":"clients/new-js/packages/chromadb/src/collection.ts","lineNumber":1806,"sourceCode":"      chromaClient,\n      apiClient,\n      id,\n      tenant,\n      database,\n      name: \"\",\n      configuration: {},\n    });\n  }\n\n  public override async add(args: {\n    ids: string[];\n    embeddings?: number[][];\n    metadatas?: Metadata[];\n    documents?: string[];\n    uris?: string[];\n  }): Promise<void> {\n    if (!args.embeddings) {\n      throw new ChromaValueError(HANDLE_EMBEDDING_ERROR);\n    }\n    return super.add(args);\n  }\n\n  public override async update(args: {\n    ids: string[];\n    embeddings?: number[][];\n    metadatas?: Metadata[];\n    documents?: string[];\n    uris?: string[];\n  }): Promise<void> {\n    if (!args.embeddings && args.documents) {\n      throw new ChromaValueError(HANDLE_EMBEDDING_ERROR);\n    }\n    return super.update(args);\n  }\n\n  public override async upsert(args: {","sourceCodeStart":1788,"sourceCodeEnd":1824,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/clients/new-js/packages/chromadb/src/collection.ts#L1788-L1824","documentation":"Error \"This operation requires an embedding function, which is not available on a collection obtained via client.collection(id). Provide pre-computed embeddings directly, or use client.getCollection() to get a full collection with embedding support.\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at clients/new-js/packages/chromadb/src/collection.ts:1806 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"}