Added save directory for embedder
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user