Open ashbuilds opened 1 month ago
same problem
Any new feedback on this ? Getting the same issue.
If we are using an alternative embedding like OpenAI, why does @xenova/transformers / chromadb-default-embeddings even need to be installed? Can we make this optional as well?
This is my workaround for now, but would be great if this can be optional.
webpack: (config, { isServer }) => {
config.externals = config.externals || [];
// TODO: Workaround for issue : https://github.com/chroma-core/chroma/issues/2988
config.externals.push({
'https://unpkg.com/@xenova/transformers@2.13.2': 'transformers',
});
return config;
}
The workaround mentioned by @ashbuilds didn't work by just doing that alone. However, it worked when I simply just installed the dependencies.
cohere-ai
@xenova/transformers
chromadb-default-embed
I'd like to avoid having to install dependencies... and then still have it direct to a CDN, I'll throw a PR at Chroma tomorrow to make sure that you dont need chroma's dependencies in your own package.json.
The workaround mentioned by @ashbuilds didn't work by just doing that alone. However, it worked when I simply just installed the dependencies.
cohere-ai @xenova/transformers chromadb-default-embed
I'd like to avoid having to install dependencies... and then still have it direct to a CDN, I'll throw a PR at Chroma tomorrow to make sure that you dont need chroma's dependencies in your own package.json.
Hi, yes you need @xenova/transformers
package to be installed
What happened?
Hi, Im trying to import chromadb into my nextjs server but getting the issue UnhandledSchemeError: Reading from "https://unpkg.com/@xenova/transformers@2.13.2", I tried to mark this as external modules but it doesn't work. Is there any workaround? Thank you!
Versions
chromadb: 1.9.2, node v22.10.0
Relevant log output