Added save directory for embedder
All checks were successful
Publish Library / Build NPM Project (push) Successful in 33s
Publish Library / Tag Version (push) Successful in 4s

This commit is contained in:
2026-02-11 21:45:54 -05:00
parent c8d5660b1a
commit 013aa942c0
3 changed files with 12 additions and 4 deletions

View File

@@ -271,7 +271,12 @@ class LLM {
return new Promise((resolve, reject) => {
const id = this.embedId++;
this.embedQueue.set(id, { resolve, reject });
this.embedWorker?.postMessage({ id, text, model: this.ai.options?.embedder || 'bge-small-en-v1.5' });
this.embedWorker?.postMessage({
id,
text,
model: this.ai.options?.embedder || 'bge-small-en-v1.5',
path: this.ai.options.path
});
});
};
const chunks = this.chunk(target, maxTokens, overlapTokens);