-
Notifications
You must be signed in to change notification settings - Fork 3k
Embeddings chunking fixes #6261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…allin/embedding-chunking-fixes
…allin/embedding-chunking-fixes
✅ Deploy Preview for continuedev canceled.
|
// `cross-env` seems to make it so __dirname is the root of the project and not the directory containing this file | ||
return path.join(__dirname, "llm", workerFileName); | ||
} | ||
// if (process.env.NODE_ENV === "test") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting out the test environment path handling will break the worker file resolution during tests. The code in build.js and package.json files shows that worker files are moved to different locations during build and testing. Without the test-specific path logic, the tokenizer workers won't be found in the test environment, causing the LlamaAsyncEncoder and GPTAsyncEncoder to fail.
React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)
😱 Found 1 issue. Time to roll up your sleeves! 😱 |
Description
[ What changed? Feel free to be brief. ]
Checklist
Screenshots
[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]
Tests
[ What tests were added or updated to ensure the changes work as expected? ]